System.Version Members

The members of System.Version are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the Version class.

Initializes a new instance of the Version class using the specified string.

Initializes a new instance of the Version class using the specified major and minor values.

Initializes a new instance of the Version class using the specified major, minor, and build values.

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

Public Properties

[read-only]
Buildint.

Gets the value of the build component of the version number for the current Version object.

[read-only]
Majorint.

Gets the value of the major component of the version number for the current Version object.

[read-only]
MajorRevisionshort.

Gets the high 16 bits of the revision number.

[read-only]
Minorint.

Gets the value of the minor component of the version number for the current Version object.

[read-only]
MinorRevisionshort.

Gets the low 16 bits of the revision number.

[read-only]
Revisionint.

Gets the value of the revision component of the version number for the current Version object.

Public Methods

Clone() : object

Returns a new Version object whose value is the same as the current Version object.

CompareTo(object) : int

Compares the current Version object to a specified object and returns an indication of their relative values.

CompareTo(Version) : int

Compares the current Version object to a specified Version object and returns an indication of their relative values.

override
Equals(object) : bool

Returns a value indicating whether the current Version object is equal to a specified object.

Equals(Version) : bool

Returns a value indicating whether the current Version object and a specified Version object represent the same value.

override
GetHashCode() : int

Returns a hash code for the current Version object.

static
Parse(string) : Version

Converts the string representation of a version number to an equivalent Version object.

override
ToString() : string

Converts the value of the current Version object to its equivalent string representation.

ToString(int) : string

Converts the value of the current Version object to its equivalent string representation. A specified count indicates the number of components to return.

static
TryParse(string, out Version) : bool
Documentation for this section has not yet been entered.

Public Operators

static
Equality(Version, Version)

Determines whether two specified Version objects are equal.

static
GreaterThan(Version, Version)

Determines whether the first specified Version object is greater than the second specified Version object.

static
GreaterThanOrEqual(Version, Version)

Determines whether the first specified Version object is greater than or equal to the second specified Version object.

static
Inequality(Version, Version)

Determines whether two specified Version objects are not equal.

static
LessThan(Version, Version)

Determines whether the first specified Version object is less than the second specified Version object.

static
LessThanOrEqual(Version, Version)

Determines whether the first specified Version object is less than or equal to the second Version object.