Compares the current instance with another object of the same type.
'Declaration
Public Overloads Function CompareTo( _
ByVal As Object _
) As Integer
public int CompareTo(
object
)
Parameters
- obj
- An object to compare with this instance.
Return Value
A 32-bit signed integer that indicates the relative order of the objects being compared. A negative integer means that the current instance is less than the object argument. Zero indicates that the objects are equal. A positive integer means that the current instance is greater than the object argument.
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