XPathNodeType と一致する現在のノードのすべての祖先要素ノードを選択します。
Overloads Public Overridable Function SelectAncestors( _
ByVal type As XPathNodeType, _ ByVal matchSelf As Boolean _) As XPathNodeIterator
[C#]
public virtual XPathNodeIterator SelectAncestors(XPathNodeTypetype,boolmatchSelf);
[C++]
public: virtual XPathNodeIterator* SelectAncestors(XPathNodeTypetype,boolmatchSelf);
[JScript]
public function SelectAncestors(
type : XPathNodeType,matchSelf : Boolean) : XPathNodeIterator;
パラメータ
- type
祖先ノードの XPathNodeType 。 - matchSelf
選択項目にコンテキスト ノードを含める場合は true 。それ以外の場合は false 。
戻り値
選択されたノードを指している XPathNodeIterator 。ノードは、ドキュメントの逆順で返されます。
解説
このメソッドは、 XPathNavigator 状態には影響を与えません。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
XPathNavigator クラス | XPathNavigator メンバ | System.Xml.XPath 名前空間 | XPathNavigator.SelectAncestors オーバーロードの一覧 | SelectChildren | SelectDescendants | Select