RequestId.CompareTo 方法

定义

重载

CompareTo(RequestId)

将此实例与所提供的进行比较 RequestId

CompareTo(Object)

将此实例与所提供的对象进行比较。

CompareTo(RequestId)

将此实例与所提供的进行比较 RequestId

public:
 virtual int CompareTo(Microsoft::VisualStudio::TestTools::Execution::RequestId ^ other);
public int CompareTo (Microsoft.VisualStudio.TestTools.Execution.RequestId other);
abstract member CompareTo : Microsoft.VisualStudio.TestTools.Execution.RequestId -> int
override this.CompareTo : Microsoft.VisualStudio.TestTools.Execution.RequestId -> int
Public Function CompareTo (other As RequestId) As Integer

参数

other
RequestId

RequestId用于比较的。

返回

Int32

一个32位有符号整数,它指示要比较的的相对顺序 RequestId 。 返回值的含义如下:小于 zeroThis 实例小于 other 。ZeroThis 实例等于 other 。大于 zeroThis 实例大于 other

实现

适用于

CompareTo(Object)

将此实例与所提供的对象进行比较。

public:
 virtual int CompareTo(System::Object ^ obj);
public int CompareTo (object obj);
abstract member CompareTo : obj -> int
override this.CompareTo : obj -> int
Public Function CompareTo (obj As Object) As Integer

参数

obj
Object

要用于比较的对象。

返回

Int32

一个32位有符号整数,它指示要比较的对象的相对顺序。 返回值的含义如下:小于 zeroThis 实例小于 obj 。ZeroThis 实例等于 obj 。大于 zeroThis 实例大于 obj

实现

例外

对象的类型不是 RequestId

适用于