Mono Class Library: System.Xml.XmlWriter Overview | MembersSystem.Xml.XmlWriter.WriteAttributeString Method |
Writes a new attribute with the specified local name, namespace URI, and value. [Edit]
|
- localName
- A string specifying the local name of the attribute. [Edit]
- ns
- A string specifying the namespace URI of the attribute. [Edit]
- value
- A string specifying the value of the attribute. [Edit]
- ns
- Documentation for this section has not yet been entered. [Edit]
- value
- Documentation for this section has not yet been entered. [Edit]
Type Reason ArgumentException localName is null or string.Empty. [Edit] InvalidOperationException The XmlWriter.WriteState is not WriteState.Element. [Edit]
This method calls the following methods in order to write a complete attribute:
XmlWriter.WriteStartAttribute(string, string)(null, localName, ns)
XmlWriter.WriteString(string)(value)
[Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0