Compares the rule to another object.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Function CompareTo ( _
obj As Object _
) As Integer
'使用
Dim instance As Rule
Dim obj As Object
Dim returnValue As Integer
returnValue = instance.CompareTo(obj)
public int CompareTo(
Object obj
)
public:
virtual int CompareTo(
Object^ obj
) sealed
public final function CompareTo(
obj : Object
) : int
Parameters
obj
Type: System.ObjectThe 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
Permissions
- 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.