Initializes a new instance of the System.Version class.
Initializes a new instance of the System.Version class using the specified string.
A string containing the major, minor, build, and revision numbers, where each number is delimited with a period character ('.').
Initializes a new instance of the System.Version class using the specified major and minor values.
Initializes a new instance of the System.Version class using the specified major, minor, and build values.
Initializes a new instance of the System.Version class with the specified major, minor, build, and revision numbers.
Gets the value of the build component of the version number for the current System.Version object.
The build number, or -1 if the build number is undefined.
Gets the value of the major component of the version number for the current System.Version object.
The major version number.
Gets the high 16 bits of the revision number.
A 16-bit signed integer.
Gets the value of the minor component of the version number for the current System.Version object.
The minor version number.
Gets the low 16 bits of the revision number.
A 16-bit signed integer.
Gets the value of the revision component of the version number for the current System.Version object.
The revision number, or -1 if the revision number is undefined.
Compares the current System.Version object to a specified System.Version object and returns an indication of their relative values.
A System.Version object to compare to the current System.Version object, or null.
A signed integer that indicates the relative values of the two objects, as shown in the following table. Return value
Meaning
Less than zero
The current System.Version object is a version before value.
Zero
The current System.Version object is the same version as value.
Greater than zero
The current System.Version object is a version subsequent to value.
-or-
value is null.
Determines whether the specified object is equal to the current object.
The object to compare with the current object.
true if the specified object is equal to the current object; otherwise, false.
Serves as the default hash function.
A hash code for the current object.
Returns a string that represents the current object.
A string that represents the current object.
StaticEqualsDetermines whether the specified object instances are considered equal.
The first object to compare.
The second object to compare.
true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.
StaticParseConverts the string representation of a version number to an equivalent System.Version object.
A string that contains a version number to convert.
An object that is equivalent to the version number specified in the input parameter.
StaticTryTries to convert the string representation of a version number to an equivalent System.Version object, and returns a value that indicates whether the conversion succeeded.
A string that contains a version number to convert.
When this method returns, contains the System.Version equivalent of the number that is contained in input, if the conversion succeeded. If input is null, System.String.Empty, or if the conversion fails, result is null when the method returns.
true if the input parameter was converted successfully; otherwise, false.
Represents the version number of an assembly, operating system, or the common language runtime. This class cannot be inherited.