DevicePropertyFactory.CreateOperatingSystemProperty Method (String, Int32, SystemType, Guid)
Create an OperatingSystemProperty object that contains information about the operating system of a device, including the OS family.
Namespace: Microsoft.WindowsServerSolutions.Common.Devices
Assembly: DevicesOM (in DevicesOM.dll)
Syntax
public static OperatingSystemProperty CreateOperatingSystemProperty(
string os,
int spMajor,
SystemType type,
Guid family
)
public:
static OperatingSystemProperty^ CreateOperatingSystemProperty(
String^ os,
int spMajor,
SystemType type,
Guid family
)
Public Shared Function CreateOperatingSystemProperty (
os As String,
spMajor As Integer,
type As SystemType,
family As Guid
) As OperatingSystemProperty
Parameters
os
Type: System.StringThe name of the operating system that is running on the device.
spMajor
Type: System.Int32The major service pack version of the operating system.
type
Type: Microsoft.WindowsServerSolutions.Common.Devices.SystemTypeThe system type of the operating system.
family
Type: System.GuidThe identifier of the operating system family that is running on the device.
Return Value
Type: Microsoft.WindowsServerSolutions.Common.Devices.OperatingSystemProperty
Returns OperatingSystemProperty.
See Also
CreateOperatingSystemProperty Overload
DevicePropertyFactory Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace
Return to top