System Namespace Enum Class
Compares this instance to a specified object and returns an indication of their relative values.
[ VB ]
<Serializable>
NotOverridable Public Function CompareTo ( _
ByVal target As Object _
) As Integer
[ C# ]
[Serializable]
public int CompareTo (
object target
);
[ C++ ]
[Serializable]
public: __sealed int CompareTo (
Object* target
);
[JScript ]
public Serializable
function CompareTo (
target : Object
) : int;
- target
- An object to compare, or a null reference ( Nothing in Visual Basic ).
A signed number indicating the relative values of this instance and target.
Return Value |
Description |
Less than zero |
The value of this instance is less than the value of target. |
Zero |
The value of this instance is equal to the value of target. |
Greater than zero |
The value of this instance is greater than the value of target.
-or-
target is a null reference ( Nothing in Visual Basic ).
|
Enum Members Equals