Determines whether the specified System.Xml.XPath.XPathNavigator is a descendant of the current System.Xml.XPath.XPathNavigator.
- nav
- The System.Xml.XPath.XPathNavigator to compare to this System.Xml.XPath.XPathNavigator.
true if the specified System.Xml.XPath.XPathNavigator is a descendant of the current System.Xml.XPath.XPathNavigator; otherwise, false.
An System.Xml.XPath.XPathNavigator is a descendant of the current System.Xml.XPath.XPathNavigator if it is positioned on a descendant node of the current System.Xml.XPath.XPathNavigator. Take, for example, the following XML string:
<item><name>widget</name></item>
If the current System.Xml.XPath.XPathNavigator is positioned on the item node, and the System.Xml.XPath.XPathNavigator specified is positioned on the name node, XPathNavigator.IsDescendant(XPathNavigator) returns true.
This method always returns false under the following conditions:
The System.Xml.XPath.XPathNavigator specified shares the same implementation but points at a different document instance than the current navigator.
The System.Xml.XPath.XPathNavigator specified has a different implementation than the current navigator.