Sdílet prostřednictvím


TestId.CompareTo Method

Definition

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

other
TestId

A TestId object.

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

other
Object

An object that can be cast to a TestId object.

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.

Applies to