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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.