Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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: ObjectThe 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
- 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.