TestId.CompareTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CompareTo(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. |
CompareTo(Object) |
Compares the current instance with another object of the same type 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. |
CompareTo(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.
public:
virtual int CompareTo(Microsoft::VisualStudio::TestTools::Common::TestId ^ other);
public int CompareTo (Microsoft.VisualStudio.TestTools.Common.TestId other);
abstract member CompareTo : Microsoft.VisualStudio.TestTools.Common.TestId -> int
override this.CompareTo : Microsoft.VisualStudio.TestTools.Common.TestId -> int
Public Function CompareTo (other As TestId) As Integer
Parameters
Returns
Implements
Exceptions
The other
object is not a TestId object.
Applies to
CompareTo(Object)
Compares the current instance with another object of the same type 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.
public:
virtual int CompareTo(System::Object ^ other);
public int CompareTo (object other);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (other As Object) As Integer
Parameters
Returns
An integer that indicates whether this instance comes before, follows, or appears in the same position in the sort order as the specified object.
Implements
Exceptions
The other
object is not a TestId object.