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
other
Type: Microsoft.VisualStudio.TestTools.Common.TestIdA TestId object.
Return Value
Type: Int32
Implements
IComparable.CompareTo(UTP)
Exceptions
Exception | Condition |
---|---|
ArgumentException | The other object is not a TestId object. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.