Extensions.DescendantsAndSelf メソッド

定義

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

オーバーロード

名前 説明
DescendantsAndSelf(IEnumerable<XElement>)

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

DescendantsAndSelf(IEnumerable<XElement>, XName)

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

注釈

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

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

DescendantsAndSelf(IEnumerable<XElement>)

ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs

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

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<T>XElement

注釈

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

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

こちらもご覧ください

適用対象

DescendantsAndSelf(IEnumerable<XElement>, XName)

ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs
ソース:
Extensions.cs

ソース コレクション内のすべての要素と、ソース コレクション内のすべての要素の子孫を含む要素のフィルター処理されたコレクションを返します。 コレクションには、一致する 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<T>XElement。 コレクションには、一致する XName を持つ要素のみが含まれます。

注釈

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

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

こちらもご覧ください

適用対象