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
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru