XmlQueryRuntime.ComparePosition(XPathNavigator, XPathNavigator) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares the relative positions of two navigators.
public:
int ComparePosition(System::Xml::XPath::XPathNavigator ^ navigatorThis, System::Xml::XPath::XPathNavigator ^ navigatorThat);
public int ComparePosition (System.Xml.XPath.XPathNavigator navigatorThis, System.Xml.XPath.XPathNavigator navigatorThat);
member this.ComparePosition : System.Xml.XPath.XPathNavigator * System.Xml.XPath.XPathNavigator -> int
Public Function ComparePosition (navigatorThis As XPathNavigator, navigatorThat As XPathNavigator) As Integer
Parameters
- navigatorThis
- XPathNavigator
An instance of the XPathNavigator class.
- navigatorThat
- XPathNavigator
An instance of the XPathNavigator class.
Returns
-1 if navigatorThis
is before navigatorThat
; 1 if navigatorThis
is after navigatorThat
; 0 if both navigators are positioned at the same node.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.