Rule.CompareTo Method (Object)
Compares the rule to another object.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaration
Public Function CompareTo ( _
obj As Object _
) As Integer
public int CompareTo(
Object obj
)
public:
virtual int CompareTo(
Object^ obj
) sealed
abstract CompareTo :
obj:Object -> int
override CompareTo :
obj:Object -> int
public final function CompareTo(
obj : Object
) : int
Parameters
- obj
Type: System.Object
The other object.
Return Value
Type: System.Int32
1 if the object is greater than the specified rule, 0 if the object equals the specified rule, -1 if the object is less than the specified rule.
Implements
.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.