Compartilhar via


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
System_CAPS_pubmethod OSVersion()

Initializes a new instance of the OSVersion class.

System_CAPS_pubmethod OSVersion(Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the OSVersion class.

Properties

Name Description
System_CAPS_pubproperty Build

Gets or sets the build number.

System_CAPS_pubproperty Major

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

System_CAPS_pubproperty Minor

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

System_CAPS_pubproperty ServicePackMajor

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

System_CAPS_pubproperty ServicePackMinor

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

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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