Share via


OSVersion Constructor (Int32, Int32, Int32, Int32, Int32)

 

Applies To: Windows Server Update Services

Initializes a new instance of the OSVersion class.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

public OSVersion(
    int major,
    int minor,
    int build,
    int servicePackMajor,
    int servicePackMinor
)
public:
OSVersion(
    int major,
    int minor,
    int build,
    int servicePackMajor,
    int servicePackMinor
)
new : 
        major:int *
        minor:int *
        build:int *
        servicePackMajor:int *
        servicePackMinor:int -> OSVersion
Public Sub New (
    major As Integer,
    minor As Integer,
    build As Integer,
    servicePackMajor As Integer,
    servicePackMinor As Integer
)

Parameters

  • major
    Type: System.Int32

    Major version number of the operating system.

  • minor
    Type: System.Int32

    Minor version number of the operating system.

  • servicePackMajor
    Type: System.Int32

    Major version number of the service pack.

  • servicePackMinor
    Type: System.Int32

    Minor version number of the service pack.

See Also

OSVersion Overload
OSVersion Class
Microsoft.UpdateServices.Administration Namespace

Return to top