Table of Contents

Class WindowsServerFeature

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

Represents a server role, role service or feature on a Windows 2008 or above server.

public class WindowsServerFeature : GlobalSerializableClassicBase, IComparable<WindowsServerFeature>
Inheritance
WindowsServerFeature
Implements

Remarks

The description of each feature is not documented as this is well known information and requires a large amount of storage space.

Constructors

WindowsServerFeature()

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

public WindowsServerFeature()

Properties

Id

Gets or sets the unique identifier of the feature.

public int Id { get; set; }

Property Value

int

InstallState

Gets or sets the installation state of the feature.

public WindowsServerFeatureInstallState InstallState { get; set; }

Property Value

WindowsServerFeatureInstallState

InstallStateString

Gets the installation state of the feature as a human readable string.

public string InstallStateString { get; }

Property Value

string

IsInstalled

Gets whether the feature is installed. This includes features which are installed but require a reboot.

public bool IsInstalled { get; }

Property Value

bool

Name

Gets or sets the display name of this feature - for example "File Server".

public string Name { get; set; }

Property Value

string

ParentId

Gets or sets the unique identifier of this feature's parent. If this is a top level feature then this field is 0.

public int ParentId { get; set; }

Property Value

int

ParentUniqueName

Gets or sets the unique name of the parent of this feature. This applies to Windows Server 2012 and above only.

public string ParentUniqueName { get; set; }

Property Value

string

UniqueName

Gets or sets the unique name of this feature - for example "AD-Certificate". This applies to Windows Server 2012 and above only.

public string UniqueName { get; set; }

Property Value

string

Methods

CompareTo(WindowsServerFeature)

Compares two server features to allow sorting by feature name.

public int CompareTo(WindowsServerFeature other)

Parameters

other WindowsServerFeature

The CENTREL.XIA.Configuration.Types.WindowsServerFeature to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.WindowsServerFeature objects.