Element (XElement Dynamic Property)

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Gets an indexer used to retrieve the child element instance that corresponds to the specified expanded name.

elem.Element[{namespaceName}localName]  

An indexer of the type XElement Item(String expandedName). This indexer takes an expanded name parameter and returns the corresponding XElement, or null if there is no element with the specified name.

This property is equivalent to Element method of the System.Xml.Linq.XContainer class.

XContainer.Element
XElement Class Dynamic Properties
Elements

Show: