Rule.CompareTo Method (Rule)

Compares the rule to another rule.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Function CompareTo ( _
    other As Rule _
) As Integer
'使用
Dim instance As Rule
Dim other As Rule
Dim returnValue As Integer

returnValue = instance.CompareTo(other)
public int CompareTo(
    Rule other
)
public:
virtual int CompareTo(
    Rule^ other
) sealed
public final function CompareTo(
    other : Rule
) : int

Parameters

Return Value

Type: System.Int32

1 if the other rule is greater than the specified rule, 0 if the other rule equals the specified rule, -1 if the other rule is less than the specified rule.

Implements

IComparable<T>.CompareTo(T)

Permissions

See Also

Reference

Rule Class

Rule Members

CompareTo Overload

Microsoft.VisualStudio.Modeling Namespace