Table of Contents

Class WindowsOptionalFeatureCollection

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a collection of Windows optional features.

public class WindowsOptionalFeatureCollection : Collection<WindowsOptionalFeature>, IList<WindowsOptionalFeature>, ICollection<WindowsOptionalFeature>, IList, ICollection, IReadOnlyList<WindowsOptionalFeature>, IReadOnlyCollection<WindowsOptionalFeature>, IEnumerable<WindowsOptionalFeature>, IEnumerable
Inheritance
WindowsOptionalFeatureCollection
Implements
Inherited Members

Constructors

WindowsOptionalFeatureCollection()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsOptionalFeatureCollection class.

public WindowsOptionalFeatureCollection()

Methods

Exists(string)

Determines whether an optional feature with the specified name exists within the collection.

public bool Exists(string name)

Parameters

name string

The name of the optional feature to locate.

Returns

bool

A System.Boolean value that indicates whether an optional feature with the specified name exists within the collection.

FindByName(string)

Returns the optional feature with the specified name, or null if no optional feature with that name is found.

public WindowsOptionalFeature FindByName(string name)

Parameters

name string

The name of the optional feature to locate.

Returns

WindowsOptionalFeature

The optional feature with the specified name.

IsInstalled(string)

Determines whether the optional feature with the specified name is installed.

public bool IsInstalled(string name)

Parameters

name string

The name of the optional feature to locate - for example "IIS-HttpErrors".

Returns

bool

A System.Boolean value that indicates whether the optional feature with the specified name is installed.

Sort()

Sorts the values in the collection.

public void Sort()