OSVersion Class
Applies To: Windows Server Update Services
Defines the version of the operating system. To get this class, call the Version property.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Inheritance Hierarchy
System.Object
Microsoft.UpdateServices.Administration.OSVersion
Syntax
[SerializableAttribute]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("6AF7BF8C-0AF0-4D4E-8D1D-3283FE2BA477")]
[ComVisibleAttribute(true)]
public class OSVersion
[SerializableAttribute]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[GuidAttribute("6AF7BF8C-0AF0-4D4E-8D1D-3283FE2BA477")]
[ComVisibleAttribute(true)]
public ref class OSVersion
[<SerializableAttribute>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<GuidAttribute("6AF7BF8C-0AF0-4D4E-8D1D-3283FE2BA477")>]
[<ComVisibleAttribute(true)>]
type OSVersion = class end
<SerializableAttribute>
<ClassInterfaceAttribute(ClassInterfaceType.None)>
<GuidAttribute("6AF7BF8C-0AF0-4D4E-8D1D-3283FE2BA477")>
<ComVisibleAttribute(True)>
Public Class OSVersion
Constructors
Name | Description | |
---|---|---|
OSVersion() | Initializes a new instance of the OSVersion class. |
|
OSVersion(Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the OSVersion class. |
Properties
Name | Description | |
---|---|---|
Build | Gets or sets the build number. |
|
Major | Gets or sets the major version number of the operating system. |
|
Minor | Gets or sets the minor version number of the operating system. |
|
ServicePackMajor | Gets or sets the major version number of the service pack. |
|
ServicePackMinor | Gets or sets the minor version number of the service pack. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.UpdateServices.Administration Namespace
Return to top