Share via


Rule.CompareTo Method (Object)

Compares the rule to another object.

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

Syntax

'Declaration
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

  • obj
    Type: Object

    The other object.

Return Value

Type: 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