[]
Returns a view representing the collection of child elements of every element and document in the source view..
public static View<XElement> Elements<T>(this View<T> view) where T : XContainer
| Type | Name | Description |
|---|---|---|
| View<T> | view | The source view. |
| Type | Description |
|---|---|
| View<XElement> | A view containing the child elements 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 filtered collection of child elements of every element and document in the source view. Only elements that have a matching XName are included.
public static View<XElement> Elements<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 that contains a filtered collection of child elements of every element and document 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. |