Value Property

XmlAttribute.Value Property

 

Gets or sets the value of the node.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

override Value : string with get, set

Property Value

Type: System.String

The value returned depends on the NodeType of the node. For XmlAttribute nodes, this property is the value of attribute.

Exception Condition
ArgumentException

The node is read-only and a set operation is called.

The following example displays information on each of the nodes in the attribute collection.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft