[]
Returns a view representing the collection of elements that contains the descendent elements of every element and document in the source view.
public static View<XElement> Descendants<T>(this View<T> view) where T : XContainer
Type | Name | Description |
---|---|---|
View<T> | view | The source view. |
Type | Description |
---|---|
View<XElement> | A view containing every descendent element of every element and document in the source view. |
Name | Description |
---|---|
T | The type of the objects in the source view, constrained to XContainer. |
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.
public static View<XElement> Descendants<T>(this View<T> view, XName name) where T : XContainer
Type | Name | Description |
---|---|---|
View<T> | view | The source view. |
XName | name | The XName to match. |
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. |
Name | Description |
---|---|
T | The type of the objects in the source view, constrained to XContainer. |