Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Private Function CompareTo ( _ value As Object _ ) As Integer Implements IComparable.CompareTo
- Type: System.Object
An object to compare with this instance, or Nothing.
Return ValueType: System.Int32
A signed integer that indicates the relative order of this instance and value.
Less than zero
This instance precedes value in the sort order.
This instance occurs in the same position as value in the sort order.
Greater than zero
This instance follows value in the sort order.
value is Nothing.