Share via


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

Initializes a new instance of the OSVersion class.

public OSVersion(
  Int32 major,
  Int32 minor,
  Int32 build,
  Int32 servicePackMajor,
  Int32 servicePackMinor
);
Public Sub New( _
  ByVal major As Int32, _
  ByVal minor As Int32, _
  ByVal build As Int32, _
  ByVal servicePackMajor As Int32, _
  ByVal servicePackMinor As Int32 _
)

Parameters

  • major
    Major version number of the operating system.
  • minor
    Minor version number of the operating system.
  • build
    Version number of the build.
  • 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.