Mono Class Library: System.Xml.XmlWriter Overview | Members

System.Xml.XmlWriter.WriteName Method

Writes the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation (http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name). [Edit]

public virtual void WriteName (string name)

Parameters

name
A string specifying the name to write. [Edit]

Exceptions

TypeReason
ArgumentExceptionname is null or string.Empty; or name is not a valid XML Name. [Edit]
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed. [Edit]

Remarks

Operation
This method writes the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation.

Note to Inheritors
This method must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0