Partager via


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

'Déclaration
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

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)

.NET Framework Security

See Also

Reference

Rule Class

CompareTo Overload

Microsoft.VisualStudio.Modeling Namespace