[]
        
(Showing Draft Content)

C1.LiveLinq.LiveViews.Xml.XmlExtensions.DescendantsAndSelf

DescendantsAndSelf Method

DescendantsAndSelf(View<XElement>)

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

Declaration
public static View<XElement> DescendantsAndSelf(this View<XElement> view)
Parameters
Type Name Description
View<XElement> view

The source view.

Returns
Type Description
View<XElement>

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

DescendantsAndSelf(View<XElement>, XName)

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

Declaration
public static View<XElement> DescendantsAndSelf(this View<XElement> view, XName name)
Parameters
Type Name Description
View<XElement> view

The source view.

XName name

The XName to match.

Returns
Type Description
View<XElement>

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