Compares this instance to a specified object and returns an indication of their relative values.
'Declaration
Public Overloads Function CompareTo( _
ByVal As Object _
) As Integer
public int CompareTo(
object
)
Parameters
- obj
- An object to compare, or null reference (Nothing in Visual Basic).
Return Value
A signed number indicating the relative values of this instance and value.
Value |
Description |
A negative integer |
This instance is less than value. |
Zero |
This instance is equal to value. |
A positive integer |
This instance is greater than value. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2