DiscoveryMessageSequence.CompareTo(DiscoveryMessageSequence) 方法

定义

将指定的 DiscoveryMessageSequence 实例与当前的 DiscoveryMessageSequence 实例相比较。

public:
 virtual int CompareTo(System::ServiceModel::Discovery::DiscoveryMessageSequence ^ other);
public int CompareTo (System.ServiceModel.Discovery.DiscoveryMessageSequence other);
abstract member CompareTo : System.ServiceModel.Discovery.DiscoveryMessageSequence -> int
override this.CompareTo : System.ServiceModel.Discovery.DiscoveryMessageSequence -> int
Public Function CompareTo (other As DiscoveryMessageSequence) As Integer

参数

other
DiscoveryMessageSequence

要比较的发现消息序列。

返回

Int32

如果两个发现消息序列相等,则为 0。如果 other 的消息数大于当前发现序列的消息数,则为一个负数。

实现

适用于