Język

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

Nazwa Opis
DescendantsAndSelf(IEnumerable<XElement>)

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

DescendantsAndSelf(IEnumerable<XElement>, XName)

Zwraca odfiltrowaną kolekcję elementów, które zawierają każdy element w kolekcji źródłowej i malejące każdego elementu w kolekcji źródłowej. W kolekcji znajdują się tylko elementy, które mają pasujący XName.

Uwagi

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

Ta metoda używa wykonania odroczonego.

DescendantsAndSelf(IEnumerable<XElement>)

Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs

Zwraca kolekcję elementów, które zawierają każdy element w kolekcji źródłowej i elementy malejące 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>

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

Zwraca

IEnumerable<T> Element XElement 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, dlatego Visual Basic użytkownicy muszą jawnie użyć tej metody osi.

Ta metoda używa wykonania odroczonego.

Zobacz też

Dotyczy

DescendantsAndSelf(IEnumerable<XElement>, XName)

Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs
Źródło:
Extensions.cs

Zwraca odfiltrowaną kolekcję elementów, które zawierają każdy element w kolekcji źródłowej i malejące każdego elementu w kolekcji źródłowej. W kolekcji znajdują się tylko elementy, które mają pasujący 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>

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

name
XName

Element XName do dopasowania.

Zwraca

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

Uwagi

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

Ta metoda używa wykonania odroczonego.

Zobacz też

Dotyczy