Extensions.DescendantNodesAndSelf(IEnumerable<XElement>) Metoda

Definicja

Zwraca kolekcję węzłów zawierającą każdy element w kolekcji źródłowej oraz 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>

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

Zwraca

XNode Element IEnumerable<T> 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

Chociaż język Visual Basic ma zintegrowaną oś XML dla elementów podrzędnych, nie ma zintegrowanej osi węzłów podrzędnych, dlatego użytkownicy języka Visual Basic muszą jawnie używać tej metody osi.

Ta metoda używa odroczonego wykonania.

Dotyczy

Zobacz też