Extensions.DescendantsAndSelf メソッド

定義

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素のすべての子孫要素のコレクションを返します。

オーバーロード

DescendantsAndSelf(IEnumerable<XElement>)

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

DescendantsAndSelf(IEnumerable<XElement>, XName)

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素の子孫要素が格納され、フィルター処理された要素のコレクションを返します。 一致する XName を持つ要素のみがコレクションに含められます。

注釈

Visual Basicには子孫要素用の統合 XML 軸がありますが、このメソッドのセマンティクスを持つ統合軸はありません。

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

DescendantsAndSelf(IEnumerable<XElement>)

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

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

パラメーター

source
IEnumerable<XElement>

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

戻り値

IEnumerable<XElement>

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

注釈

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

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

こちらもご覧ください

適用対象

DescendantsAndSelf(IEnumerable<XElement>, XName)

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素の子孫要素が格納され、フィルター処理された要素のコレクションを返します。 一致する XName を持つ要素のみがコレクションに含められます。

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

パラメーター

source
IEnumerable<XElement>

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

name
XName

照合する XName

戻り値

IEnumerable<XElement>

ソース コレクション内のすべての要素、およびソース コレクション内のすべての要素の子孫が格納された、IEnumerable<T>XElement。 一致する XName を持つ要素のみがコレクションに含められます。

注釈

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

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

こちらもご覧ください

適用対象