Version.IComparable.CompareTo(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 value | Meaning |
---|---|
Less than zero | The current Version object is a version before version . |
Zero | The current Version object is the same version as version . |
Greater than zero | The 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
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.