Share via


RequestId.CompareTo Method (Object)

Compares this instance with the provided object.

Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.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 object for comparison.

Return Value

Type: Int32
A 32-bit signed integer that indicates the relative order of the objects that are being compared. The return value has these meanings:

  • Less than zero
    This instance is less than obj.

  • Zero
    This instance is equal to obj.

  • Larger than zero
    This instance is greater than obj.

Implements

IComparable.CompareTo(Object)

Exceptions

Exception Condition
[ArgumentException]

Object is not of type RequestId.

.NET Framework Security

See Also

Reference

RequestId Class

CompareTo Overload

Microsoft.VisualStudio.TestTools.Execution Namespace

CompareTo