Share via


TestId.CompareTo Method (TestId)

Compares the current instance with the provided test ID and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

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

Parameters

Return Value

Type: Int32

Implements

IComparable.CompareTo(UTP)

Exceptions

Exception Condition
[ArgumentException]

The other object is not a TestId object.

.NET Framework Security

See Also

Reference

TestId Class

CompareTo Overload

Microsoft.VisualStudio.TestTools.Common Namespace

CompareTo