Partager via


DevicePropertyFactory.CreateOperatingSystemProperty Method (String, Int32, SystemType, OSSkuType, Guid)

 

Create an OperatingSystemProperty object that contains information about the operating system of a device, including the SKU type and OS family.

Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)

Syntax

public static OperatingSystemProperty CreateOperatingSystemProperty(
    string os,
    int spMajor,
    SystemType type,
    OSSkuType skuType,
    Guid family
)
public:
static OperatingSystemProperty^ CreateOperatingSystemProperty(
    String^ os,
    int spMajor,
    SystemType type,
    OSSkuType skuType,
    Guid family
)
Public Shared Function CreateOperatingSystemProperty (
    os As String,
    spMajor As Integer,
    type As SystemType,
    skuType As OSSkuType,
    family As Guid
) As OperatingSystemProperty

Parameters

  • spMajor
    Type: System.Int32

    The major version of the service pack.

  • family
    Type: System.Guid

    The operating system family.

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