Mono Class Library: System.Xml.XPath.XPathNavigator Overview | Members

System.Xml.XPath.XPathNavigator.ComparePosition Method

Evaluates in which direction the current node of the argument XPathNavigator exists as compared to the current node of this instance.

public virtual System.Xml.XmlNodeOrder ComparePosition (XPathNavigator nav)

Parameters

nav
The XPathNavigator that is being compared.

Returns

System.Xml.XmlNodeOrder.Unknown if the argument navigator comes from different IXPathNavigable instance; System.Xml.XmlNodeOrder.Same if the navigator is positioned on the same location as this navigator; System.Xml.XmlNodeOrder.Before if this instance positions current node before the current node of the argument navigator; System.Xml.XmlNodeOrder.After if the argument navigator positions current node before the current node of this instance.

Remarks

If argument navigator was null, then NullReferenceException is thrown.

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0