XPathMessageFilterElementComparer.IComparer.Compare(Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
比较两个 XPathMessageFilterElement 实例。
virtual int System.Collections.IComparer.Compare(System::Object ^ x, System::Object ^ y) = System::Collections::IComparer::Compare;
int IComparer.Compare (object x, object y);
abstract member System.Collections.IComparer.Compare : obj * obj -> int
override this.System.Collections.IComparer.Compare : obj * obj -> int
Function Compare (x As Object, y As Object) As Integer Implements IComparer.Compare
参数
返回
下表列出了可能的值。
| “值” | 条件 |
|---|---|
| -1 | x 小于 y。
|
| 0 | x 等于 y。
|
| 1 | x 大于 y。
|
实现
例外
无法分析 x 或 y 所指定的 XPath 筛选器。
找不到 x 或 y 所指定的 XPath 命名空间前缀。