[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.Xml.XmlExtensions.Descendants

Descendants Method

Descendants<T>(View<T>)

Returns a view representing the collection of elements that contains the descendent elements of every element and document in the source view.

Declaration
public static View<XElement> Descendants<T>(this View<T> view) where T : XContainer
Parameters
Type Name Description
View<T> view

The source view.

Returns
Type Description
View<XElement>

A view containing every descendent element of every element and document in the source view.

Type Parameters
Name Description
T

The type of the objects in the source view, constrained to XContainer.

Descendants<T>(View<T>, XName)

Returns a view representing a filtered collection of elements that contains the descendent elements of every element and document in the source view. Only elements that have a matching XName are included.

Declaration
public static View<XElement> Descendants<T>(this View<T> view, XName name) where T : XContainer
Parameters
Type Name Description
View<T> view

The source view.

XName name

The XName to match.

Returns
Type Description
View<XElement>

A view containing descendants of elements and documents in the source view. Only elements that have a matching XName are included.

Type Parameters
Name Description
T

The type of the objects in the source view, constrained to XContainer.