Version Constructor (Int32, Int32, Int32, Int32)

 

Initializes a new instance of the Version class with the specified major, minor, build, and revision numbers.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

new : 
        major:int *
        minor:int *
        build:int *
        revision:int -> Version

Parameters

major
Type: System.Int32

The major version number.

minor
Type: System.Int32

The minor version number.

build
Type: System.Int32

The build number.

revision
Type: System.Int32

The revision number.

Exception Condition
ArgumentOutOfRangeException

major, minor, build, or revision is less than zero.

This constructor creates a Version object with the following property values.

Property

Value

Major

major

Minor

minor

Build

build

Revision

revision

The following code example demonstrates the Version constructor, and Major, Minor, Build, Revision, MajorRevision, and MinorRevision properties.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: