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

System.Xml.XmlWriter.WriteQualifiedName Method

Writes the qualified name. [Edit]

public virtual void WriteQualifiedName (string localName, string ns)

Parameters

localName
A string specifying the local name to write. [Edit]
ns
A string specifying the namespace URI to associate with localname. [Edit]
ns
Documentation for this section has not yet been entered. [Edit]

Exceptions

TypeReason
ArgumentExceptionlocalName is null, is string.Empty, or is not a valid XML name. [Edit]
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed. [Edit]
System.Xml.XmlExceptionlocalName is not a valid XML name. [Edit]

Remarks

Operation
This method writes the qualified name. If ns maps to the current default namespace, no prefix is generated. When writing attribute values, this method generates a prefix if ns is not found. When writing element content, it throws an exception if ns is not found.

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