Extensions.DescendantsAndSelf メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ソース コレクション内のすべての要素のコレクションと、ソース コレクション内のすべての要素のすべての子孫要素を返します。
オーバーロード
| 名前 | 説明 |
|---|---|
| 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明示的に使用する必要があります。
このメソッドでは、遅延実行が使用されます。
こちらもご覧ください
- DescendantNodesAndSelf()
- DescendantsAndSelf()
- DescendantNodes()
- Descendants()
- DescendantNodes<T>(IEnumerable<T>)
- Descendants
- Nodes<T>(IEnumerable<T>)
- LINQ to XML の概要
適用対象
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。
返品
ソース コレクション内のすべての要素と、ソース コレクション内のすべての要素の子孫を含むIEnumerable<T>のXElement。 コレクションには、一致する XName を持つ要素のみが含まれます。
注釈
Visual Basicには子孫要素の統合 XML 軸がありますが、このメソッドのセマンティクスを持つ統合軸がないため、ユーザーはこの軸メソッドVisual Basic明示的に使用する必要があります。
このメソッドでは、遅延実行が使用されます。
こちらもご覧ください
- DescendantNodesAndSelf()
- DescendantsAndSelf()
- DescendantNodes()
- Descendants()
- DescendantNodes<T>(IEnumerable<T>)
- Descendants
- Nodes<T>(IEnumerable<T>)
- LINQ to XML の概要