IEnumerable<T>.Elements Method

Include Protected Members
Include Inherited Members

Returns a collection of the child elements of every element and document in the source collection.

Overload List

  Name Description
Bb910530.pubextension(en-us,VS.95).gif Elements() Returns a collection of the child elements of every element and document in the source collection. (Defined by Extensions.)
Bb910530.pubextension(en-us,VS.95).gif Elements(XName) Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. (Defined by Extensions.)

Top

Remarks

Visual Basic contains an integrated elements axis that allows you to find all child elements with a specified XName for every element in the source collection.

This method uses deferred execution.

See Also

Reference

IEnumerable<T> Interface

IEnumerable<T> Members

System.Collections.Generic Namespace

Other Resources

Processing XML Data with LINQ to XML (Silverlight)