Extensions.DescendantsAndSelf 메서드

정의

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 모든 하위 요소가 들어 있는 컬렉션을 반환합니다.

오버로드

DescendantsAndSelf(IEnumerable<XElement>)

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 요소가 들어 있는 요소 컬렉션을 반환합니다.

DescendantsAndSelf(IEnumerable<XElement>, XName)

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 항목이 들어 있는 필터링된 요소 컬렉션을 반환합니다. 일치하는 XName이 있는 요소만 컬렉션에 포함됩니다.

설명

Visual Basic 하위 요소에 대한 통합 XML 축이 있지만 이 메서드의 의미 체계를 갖는 통합 축은 없습니다.

이 메서드는 지연된 실행을 사용합니다.

DescendantsAndSelf(IEnumerable<XElement>)

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 요소가 들어 있는 요소 컬렉션을 반환합니다.

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<XElement>

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 요소가 들어 있는 IEnumerable<T>XElement입니다.

설명

Visual Basic 하위 요소에 대한 통합 XML 축이 있지만 이 메서드의 의미 체계를 갖는 통합 축이 없으므로 Visual Basic 사용자가 이 축 메서드를 명시적으로 사용해야 합니다.

이 메서드는 지연된 실행을 사용합니다.

추가 정보

적용 대상

DescendantsAndSelf(IEnumerable<XElement>, XName)

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 항목이 들어 있는 필터링된 요소 컬렉션을 반환합니다. 일치하는 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입니다.

name
XName

일치시킬 XName입니다.

반환

IEnumerable<XElement>

소스 컬렉션의 모든 요소와 소스 컬렉션에 있는 모든 요소의 하위 항목이 들어 있는 IEnumerable<T>XElement입니다. 일치하는 XName이 있는 요소만 컬렉션에 포함됩니다.

설명

Visual Basic 하위 요소에 대한 통합 XML 축이 있지만 이 메서드의 의미 체계를 갖는 통합 축이 없으므로 Visual Basic 사용자가 이 축 메서드를 명시적으로 사용해야 합니다.

이 메서드는 지연된 실행을 사용합니다.

추가 정보

적용 대상