[]
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.
public static View<XElement> DescendantsAndSelf(this View<XElement> view)
Type | Name | Description |
---|---|---|
View<XElement> | view | The source view. |
Type | Description |
---|---|
View<XElement> | A view containing every element in the source view, and the descendent elements of every element in the source view. |
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.
public static View<XElement> DescendantsAndSelf(this View<XElement> view, XName name)
Type | Name | Description |
---|---|---|
View<XElement> | view | The source view. |
XName | name | The XName to match. |
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. |