SeekableXPathNavigator.ComparePosition(Int64, Int64) 方法
定义
在派生类中重写时,返回描述两个指定位置的文档顺序的值。When overridden in a derived class, returns a value that describes the document order of the two specified positions.
public:
abstract System::Xml::XmlNodeOrder ComparePosition(long firstPosition, long secondPosition);
public:
abstract System::Xml::XmlNodeOrder ComparePosition(long first, long second);
public abstract System.Xml.XmlNodeOrder ComparePosition (long firstPosition, long secondPosition);
public abstract System.Xml.XmlNodeOrder ComparePosition (long first, long second);
override this.ComparePosition : int64 * int64 -> System.Xml.XmlNodeOrder
override this.ComparePosition : int64 * int64 -> System.Xml.XmlNodeOrder
Public MustOverride Function ComparePosition (firstPosition As Long, secondPosition As Long) As XmlNodeOrder
Public MustOverride Function ComparePosition (first As Long, second As Long) As XmlNodeOrder
参数
- firstPositionfirst
- Int64
进行比较的第一个位置。The first position in the comparison.
- secondPositionsecond
- Int64
进行比较的第二个位置。The second position in the comparison.
返回
XmlNodeOrder 值之一,用于描述文档中 firstPosition 与 secondPosition 的关系。One of the XmlNodeOrder values that describes the relation of firstPosition to secondPosition in the document.
例外
firstPosition 或 secondPosition 无效。firstPosition or secondPosition is not valid.
实施者说明
对于无效位置值,此方法应引发异常。This method should throw an exception for invalid position values.