DevicePropertyFactory.CreateOperatingSystemProperty Method (String, Version, Int32, SystemType, OSSkuType)
Create an OperatingSystemProperty object that contains information about the operating system of a device.
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
)
public:
static OperatingSystemProperty^ CreateOperatingSystemProperty(
String^ os,
Version^ osVersion,
int spMajor,
SystemType type,
OSSkuType skuType
)
Public Shared Function CreateOperatingSystemProperty (
os As String,
osVersion As Version,
spMajor As Integer,
type As SystemType,
skuType As OSSkuType
) As OperatingSystemProperty
Parameters
os
Type: System.StringThe name of the operating system.
osVersion
Type: System.VersionThe version of the OS.
spMajor
Type: System.Int32the major version of the service pack.
type
Type: Microsoft.WindowsServerSolutions.Common.Devices.SystemTypeThe system type of the operating system.
skuType
Type: Microsoft.WindowsServerSolutions.Common.Devices.OSSkuTypeThe guid of the OS family that running on the device.
Return Value
Type: Microsoft.WindowsServerSolutions.Common.Devices.OperatingSystemProperty
The new property object.
See Also
CreateOperatingSystemProperty Overload
DevicePropertyFactory Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top