Value (XAttribute dynamic property)

Gets or sets the value of the XML attribute.

Syntax

attrib.Value

Property value/return value

A String containing the value of this attribute.

Exceptions

Exception type Condition
ArgumentNullException When setting, the value is null.

Remarks

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

See also