OSVersion

Defines the version of the operating system.

To retrieve this class, call the OSInfo.Version property.

Public Constructors

The OSVersion structure has the following public constructors.

Constructor Description
OSVersion()

Initializes a new instance of the OSVersion class.

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

Initializes a new instance of the OSVersion class.

Public Methods

The OSVersion structure has the following public methods.

Method Description
Equals(Object)

Determines if this instance and a specified object are equal.

Equals(Object, Object)

Static (Shared). Determines if the specified Object instances are considered equal.

GetHashCode()

Retrieves the hash code for this instance.

GetType()

Retrieves the Type of the current instance.

ReferenceEquals(Object, Object)

Static (Shared). Determines if the specified Object instances are the same instance.

ToString()

Retrieves the fully qualified type name of this instance.

Public Properties

The OSVersion structure has the following public properties.

Property Description
Build

Version number of the build.

Major

Major version number of the operating system.

Minor

Minor version number of the operating system.

ServicePackMajor

Major version number of the service pack.

ServicePackMinor

Minor version number of the service pack.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

OSInfo