Value (XAttribute 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 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
System.Xml.Linq.XAttribute.Value XAttribute Class Dynamic Properties Attribute