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この軸メソッドを明示的に使用する必要があります。

このメソッドでは、遅延実行が使用されます。

適用対象

こちらもご覧ください