Class WindowsOperatingSystemLicense
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents information about the license status of the Windows operating system.
public class WindowsOperatingSystemLicense : BypassSection
- Inheritance
-
WindowsOperatingSystemLicense
- Inherited Members
Constructors
WindowsOperatingSystemLicense()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsOperatingSystemLicense class.
public WindowsOperatingSystemLicense()
Properties
DisplayName
Gets or sets the display name of the license.
public string DisplayName { get; set; }
Property Value
LicenseState
Gets or sets the state of the operating system license.
public WindowsOperatingSystemLicenseState LicenseState { get; set; }
Property Value
LicenseStateString
Gets the state of the operating system license as a human readable string.
public string LicenseStateString { get; set; }
Property Value
PartialProductKey
Gets or sets the partial product key - for example "XXXXX-XXXXX-XXXXX-XXXXX-QGK8Y".
public string PartialProductKey { get; set; }
Property Value
ProductKeyChannel
Gets or sets the name of the product key channel - for example "Retail". This only applies to Windows Server 2012 R2 and above.
public string ProductKeyChannel { get; set; }
Property Value
Methods
FromXml(string)
Returns a CENTREL.XIA.Configuration.Types.WindowsOperatingSystemLicense class from the specified XML.
public static WindowsOperatingSystemLicense FromXml(string xml)
Parameters
xml
stringThe XML representation of the object.
Returns
- WindowsOperatingSystemLicense
A CENTREL.XIA.Configuration.Types.WindowsOperatingSystemLicense class.
ToString()
Returns the license status as a human readable string.
public override string ToString()
Returns
- string
The license status as a human readable string.