Compares this instance to a specified object and returns an indication of their relative values.
Namespace:
?
System
Assembly:
?
mscorlib (in mscorlib.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function CompareTo ( _
value As Object _
) As Integer |
Visual C++ |
---|
public:
virtual int CompareTo(
Object^ value
) sealed |
JavaScript |
---|
function compareTo(value); |
Return Value
Value Condition -1 The value of this instance is less than the value of value. 0 The value of this instance is equal to the value of value. 1 The value of this instance is greater than the value of value.-or- value is null.
Implements
IComparable..::.CompareTo(Object)Exceptions
See Also