Partage via


XmlQueryRuntime.ComparePosition(XPathNavigator, XPathNavigator) Méthode

Définition

Compare les positions relatives de deux navigateurs.

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

Paramètres

navigatorThis
XPathNavigator

Instance de la classe XPathNavigator.

navigatorThat
XPathNavigator

Instance de la classe XPathNavigator.

Retours

-1 si navigatorThis est situé avant navigatorThat ; 1 si navigatorThis est situé après navigatorThat ; 0 si les deux navigateurs sont positionnés au même nœud.

S’applique à