Condividi tramite


XmlQueryRuntime.ComparePosition(XPathNavigator, XPathNavigator) Metodo

Definizione

Confronta le posizioni relative di due navigatori.

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

Parametri

navigatorThis
XPathNavigator

Istanza della classe XPathNavigator.

navigatorThat
XPathNavigator

Istanza della classe XPathNavigator.

Restituisce

Int32

-1 se navigatorThis precede navigatorThat. 1 se navigatorThis segue navigatorThat. 0 se entrambi gli strumenti di navigazione sono posizionati sullo stesso nodo.

Si applica a