Extensions.DescendantNodesAndSelf(IEnumerable<XElement>) メソッド

定義

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素の子孫ノードが格納されたノードのコレクションを返します。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<System::Xml::Linq::XNode ^> ^ DescendantNodesAndSelf(System::Collections::Generic::IEnumerable<System::Xml::Linq::XElement ^> ^ source);
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XNode> DescendantNodesAndSelf (this System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> source);
public static System.Collections.Generic.IEnumerable<System.Xml.Linq.XNode> DescendantNodesAndSelf (this System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement?> source);
static member DescendantNodesAndSelf : seq<System.Xml.Linq.XElement> -> seq<System.Xml.Linq.XNode>
<Extension()>
Public Function DescendantNodesAndSelf (source As IEnumerable(Of XElement)) As IEnumerable(Of XNode)

パラメーター

source
IEnumerable<XElement>

ソース コレクションが格納されている IEnumerable<T>XElement

戻り値

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素の子孫ノードが格納された、IEnumerable<T>XNode

注釈

Visual Basic には子孫要素用の統合 XML 軸がありますが、子孫ノードには統合軸がないため、Visual Basic ユーザーはこの軸メソッドを明示的に使用する必要があります。

このメソッドは遅延実行を使用します。

適用対象

こちらもご覧ください