Compartir a través de


XmlQueryRuntime.ComparePosition(XPathNavigator, XPathNavigator) Método

Definición

Compara las posiciones relativas de dos exploradores.

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

Parámetros

navigatorThis
XPathNavigator

Instancia de la clase XPathNavigator.

navigatorThat
XPathNavigator

Instancia de la clase XPathNavigator.

Devoluciones

Int32

Es -1 si navigatorThis está antes que navigatorThat; es 1 si navigatorThis está después que navigatorThat; es 0 si ambos navegadores se encuentran en el mismo nodo.

Se aplica a