Partager via


OSVersion.ServicePackMajor Property

 

Applies To: Windows Server Update Services

Gets or sets the major version number of the service pack.

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

Syntax

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

Property Value

Type: System.Int32

The major version number of the service pack.

See Also

OSVersion Class
Microsoft.UpdateServices.Administration Namespace

Return to top