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
InstallState
Gets or sets the installation state of the feature.
public WindowsServerFeatureInstallState InstallState { get; set; }
Property Value
InstallStateString
Gets the installation state of the feature as a human readable string.
public string InstallStateString { get; }
Property Value
IsInstalled
Gets whether the feature is installed. This includes features which are installed but require a reboot.
public bool IsInstalled { get; }
Property Value
Name
Gets or sets the display name of this feature - for example "File Server".
public string Name { get; set; }
Property Value
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
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
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
Methods
CompareTo(WindowsServerFeature)
Compares two server features to allow sorting by feature name.
public int CompareTo(WindowsServerFeature other)
Parameters
other
WindowsServerFeatureThe CENTREL.XIA.Configuration.Types.WindowsServerFeature to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsServerFeature objects.