XPathNavigator.IsDescendant メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XPathNavigator.IsDescendant メソッドの意味・解説 

XPathNavigator.IsDescendant メソッド

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

名前空間: System.Xml.XPath
アセンブリ: System.Xml (system.xml.dll 内)
構文構文

Public Overridable Function
 IsDescendant ( _
    nav As XPathNavigator _
) As Boolean
Dim instance As XPathNavigator
Dim nav As XPathNavigator
Dim returnValue As Boolean

returnValue = instance.IsDescendant(nav)
public virtual bool IsDescendant (
    XPathNavigator nav
)
public:
virtual bool IsDescendant (
    XPathNavigator^ nav
)
public boolean IsDescendant (
    XPathNavigator nav
)
public function IsDescendant (
    nav : XPathNavigator
) : boolean

パラメータ

nav

この XPathNavigator と比較する XPathNavigator。

戻り値
指定された XPathNavigator が現在の XPathNavigator の子孫である場合は true を返します。それ以外の場合は false を返します。

解説解説

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

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

現在の XPathNavigator が item ノードに配置され、指定された XPathNavigator が name ノードに配置されている場合、IsDescendant は true を返します。

このメソッドは、次の条件では、必ず false を返します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
XPathNavigator クラス
XPathNavigator メンバ
System.Xml.XPath 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

XPathNavigator.IsDescendant メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XPathNavigator.IsDescendant メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS