Sdílet prostřednictvím


XmlQueryRuntime.ComparePosition(XPathNavigator, XPathNavigator) Metoda

Definice

Porovná relativní pozice dvou navigátorů.

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

Parametry

navigatorThis
XPathNavigator

Instance třídy XPathNavigator

navigatorThat
XPathNavigator

Instance třídy XPathNavigator

Návraty

Int32

-1 navigatorThis , pokud je před navigatorThat ; 1, pokud navigatorThis je po navigatorThat ; 0, pokud jsou oba navigátory umístěny na stejném uzlu.

Platí pro