XmlDictionaryWriter.WriteQualifiedName Method (XmlDictionaryString, XmlDictionaryString)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.

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

public virtual void WriteQualifiedName(
	XmlDictionaryString localName,
	XmlDictionaryString namespaceUri


Type: System.Xml.XmlDictionaryString

The local name of the qualified name.

Type: System.Xml.XmlDictionaryString

The namespace URI of the qualified name.

Exception Condition

localName is null.

If the namespace maps to the current default namespace, no prefix is generated.

When writing attribute values, this method generates a prefix if the namespace is not found. When writing element content, it throws an exception if the namespace is not found.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top