Value (XElement Dynamic Property)

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Gets or sets the content of the element.

Syntax

elem.Value

Property Value/Return Value

A String that represents the concatenated contents of the element.

Remarks

This property is equivalent to the Value property of the System.Xml.Linq.XElement class, but this dynamic property also supports change notifications.

See Also

System.Xml.Linq.XElement.Value XElement Class Dynamic Properties Xml