Extensions.DescendantsAndSelf Metoda

Definicja

Zwraca kolekcję każdego elementu w kolekcji źródłowej i wszystkie elementy podrzędne dla każdego elementu w kolekcji źródłowej.

Przeciążenia

DescendantsAndSelf(IEnumerable<XElement>)

Zwraca kolekcję elementów, które zawierają każdy element w kolekcji źródłowej i malejące elementy każdego elementu w kolekcji źródłowej.

DescendantsAndSelf(IEnumerable<XElement>, XName)

Zwraca filtrowaną kolekcję elementów, które zawierają każdy element w kolekcji źródłowej, oraz malejące wartości każdego elementu w kolekcji źródłowej. W kolekcji znajdują się tylko elementy, które mają dopasowanie XName .

Uwagi

Mimo że Visual Basic ma zintegrowaną oś XML dla elementów potomnych, nie ma zintegrowanej osi, która ma semantyka tej metody.

Ta metoda używa odroczonego wykonania.

DescendantsAndSelf(IEnumerable<XElement>)

Zwraca kolekcję elementów, które zawierają każdy element w kolekcji źródłowej i malejące elementy każdego elementu w kolekcji źródłowej.

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)

Parametry

source
IEnumerable<XElement>

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

Zwraca

IEnumerable<XElement>

XElement Element IEnumerable<T> zawierający każdy element w kolekcji źródłowej oraz elementy malejące każdego elementu w kolekcji źródłowej.

Uwagi

Mimo że Visual Basic ma zintegrowaną oś XML dla elementów potomnych, nie ma zintegrowanej osi, która ma semantyka tej metody, więc Visual Basic użytkownicy muszą jawnie użyć tej metody osi.

Ta metoda używa odroczonego wykonania.

Zobacz też

Dotyczy

DescendantsAndSelf(IEnumerable<XElement>, XName)

Zwraca filtrowaną kolekcję elementów, które zawierają każdy element w kolekcji źródłowej, oraz malejące wartości każdego elementu w kolekcji źródłowej. W kolekcji znajdują się tylko elementy, które mają dopasowanie 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)

Parametry

source
IEnumerable<XElement>

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

name
XName

Element XName do dopasowania.

Zwraca

IEnumerable<XElement>

XElement Element IEnumerable<T> , który zawiera każdy element w kolekcji źródłowej i zstąpień każdego elementu w kolekcji źródłowej. W kolekcji znajdują się tylko elementy, które mają dopasowanie XName .

Uwagi

Mimo że Visual Basic ma zintegrowaną oś XML dla elementów potomnych, nie ma zintegrowanej osi, która ma semantyka tej metody, więc Visual Basic użytkownicy muszą jawnie użyć tej metody osi.

Ta metoda używa odroczonego wykonania.

Zobacz też

Dotyczy