Język

Extensions.DescendantNodesAndSelf(IEnumerable<XElement>) Metoda

Definicja

Zwraca kolekcję węzłów, która zawiera każdy element w kolekcji źródłowej i węzły podrzędne każdego elementu w kolekcji źródłowej.

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)

Parametry

source
IEnumerable<XElement>

IEnumerable<T> Element XElement zawierający kolekcję źródłową.

Zwraca

IEnumerable<T> Element XNode zawierający każdy element w kolekcji źródłowej oraz węzły podrzędne każdego elementu w kolekcji źródłowej.

Uwagi

Mimo że Visual Basic ma zintegrowaną oś XML dla elementów podrzędnych, nie ma zintegrowanej osi dla węzłów podrzędnych, dlatego Visual Basic użytkownicy muszą jawnie użyć tej metody osi.

Ta metoda używa wykonania odroczonego.

Dotyczy

Zobacz też