--- title: Value (XAttribute dynamic property) ms.date: 10/22/2019 ms.topic: reference apiname: - "XAttribute.Value" apitype: "Assembly" --- # Value (XAttribute dynamic property) Gets or sets the value of the XML attribute. ## Syntax ```xaml attrib.Value ``` ## Property value/return value A containing the value of this attribute. ## Exceptions |Exception type|Condition| | - |---------------| ||When setting, the `value` is `null`.| ## Remarks This property is equivalent to the property of the class, but this dynamic property also supports change notifications. ## See also - - [XAttribute class dynamic properties](value-xattribute-dynamic-property.md) - [Attribute](attribute-xelement-dynamic-property.md)