Freigeben über


Rule.CompareTo Method (Rule)

Compares the rule to another rule by their IDs.

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

Syntax

'Declaration
Public Function CompareTo ( _
    other As Rule _
) As Integer
public int CompareTo(
    Rule other
)
public:
virtual int CompareTo(
    Rule^ other
) sealed
abstract CompareTo : 
        other:Rule -> int 
override CompareTo : 
        other:Rule -> int 
public final function CompareTo(
    other : Rule
) : int

Parameters

Return Value

Type: System.Int32
Compares the IDs of the two rules.

Implements

IComparable<T>.CompareTo(T)

.NET Framework Security

See Also

Reference

Rule Class

CompareTo Overload

Microsoft.VisualStudio.Modeling Namespace