Rule.CompareTo Method (Object)

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

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

IComparable.CompareTo(Object)

Permissions

See Also

Reference

Rule Class

Rule Members

CompareTo Overload

Microsoft.VisualStudio.Modeling Namespace