XPathNavigator.IsDescendant(XPathNavigator) メソッド

定義

指定した XPathNavigator が現在の XPathNavigatorの子孫であるかどうかを判断します。

public:
 virtual bool IsDescendant(System::Xml::XPath::XPathNavigator ^ nav);
public virtual bool IsDescendant(System.Xml.XPath.XPathNavigator? nav);
public virtual bool IsDescendant(System.Xml.XPath.XPathNavigator nav);
abstract member IsDescendant : System.Xml.XPath.XPathNavigator -> bool
override this.IsDescendant : System.Xml.XPath.XPathNavigator -> bool
Public Overridable Function IsDescendant (nav As XPathNavigator) As Boolean

パラメーター

nav
XPathNavigator

このXPathNavigatorと比較するXPathNavigator

返品

指定した が現在の の子孫である場合は

注釈

XPathNavigatorは、現在のXPathNavigatorの子孫ノードに配置されている場合、現在のXPathNavigatorの子孫です。 たとえば、次の XML 文字列を使用します。

<item><name>widget</name></item>

現在の XPathNavigatoritem ノード上に配置され、指定された XPathNavigatorname ノード上に配置されている場合、 IsDescendanttrueを返します。

このメソッドは、常に次の条件下で false を返します。

  • 指定した XPathNavigator は同じ実装を共有しますが、現在のナビゲーターとは異なるドキュメント インスタンスを指します。

  • 指定された XPathNavigator には、現在のナビゲーターとは異なる実装があります。

適用対象