Επεξεργασία

Κοινή χρήση μέσω


Version.IComparable.CompareTo(Object) Method

Definition

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

 virtual int System.IComparable.CompareTo(System::Object ^ version) = IComparable::CompareTo;
int IComparable.CompareTo (object version);
abstract member System.IComparable.CompareTo : obj -> int
override this.System.IComparable.CompareTo : obj -> int
Function CompareTo (version As Object) As Integer Implements IComparable.CompareTo

Parameters

version
Object

An object to compare, or null.

Returns

A signed integer that indicates the relative values of the two objects, as shown in the following table:

Return valueMeaning
Less than zeroThe current Version object is a version before version.
ZeroThe current Version object is the same version as version.
Greater than zeroThe current Version object is a version subsequent to version, or version is null.

Implements

Remarks

This member is an explicit interface member implementation.

Applies to