[]
        
(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
Public Shared Function Descendants(Of T As XContainer)(view As View(Of T)) As View(Of XElement)
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
Public Shared Function Descendants(Of T As XContainer)(view As View(Of T), name As XName) As View(Of XElement)
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.