Compares this instance to the supplied object and returns an indication of their relative values.
[Visual Basic] Public Overridable Function CompareTo( _ ByVal obj As Object _ ) As Integer [C#] public virtual int CompareTo( object obj ); [C++] public: virtual int CompareTo( Object* obj ); [JScript] public function CompareTo( obj : Object ) : int;
- The object to be compared.
A signed number indicating the relative values of the instance and the object.
|Less than zero||This instance is less than object.|
|Zero||This instance is the same as object.|
|Greater than zero||This instance is greater than object
object is a null reference (Nothing)
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code