Partager via


OSVersion.Major Property

 

Applies To: Windows Server Update Services

Gets or sets the major version number of the operating system.

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

Syntax

public int Major { get; set; }
public:
property int Major {
    int get();
    void set(int value);
}
member Major : int with get, set
Public Property Major As Integer

Property Value

Type: System.Int32

The major version number of the operating system.

See Also

OSVersion Class
Microsoft.UpdateServices.Administration Namespace

Return to top