Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Create an OperatingSystemProperty object that contains information about the operating system of a device, including the OS version, SKU type, and OS family.
Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)
Syntax
public static OperatingSystemProperty CreateOperatingSystemProperty(
    string os,
    Version osVersion,
    int spMajor,
    SystemType type,
    OSSkuType skuType,
    Guid family
)
public:
static OperatingSystemProperty^ CreateOperatingSystemProperty(
    String^ os,
    Version^ osVersion,
    int spMajor,
    SystemType type,
    OSSkuType skuType,
    Guid family
)
Public Shared Function CreateOperatingSystemProperty (
    os As String,
    osVersion As Version,
    spMajor As Integer,
    type As SystemType,
    skuType As OSSkuType,
    family As Guid
) As OperatingSystemProperty
Parameters
- os 
 Type: System.String- The name of the operating system. 
- osVersion 
 Type: System.Version- The verison of the operating system. 
- spMajor 
 Type: System.Int32- The major version of the service pack. 
- type 
 Type: Microsoft.WindowsServerSolutions.Common.Devices.SystemType- The system type of the operating system. 
- skuType 
 Type: Microsoft.WindowsServerSolutions.Common.Devices.OSSkuType- The SKU type. 
- family 
 Type: System.Guid- The guid of the OS family that running on the device. 
Return Value
Type: Microsoft.WindowsServerSolutions.Common.Devices.OperatingSystemProperty
A new property object.
See Also
CreateOperatingSystemProperty Overload
DevicePropertyFactory Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top