Export (0) Print
Expand All

XmlDictionaryWriter.WriteQualifiedName Method (XmlDictionaryString, XmlDictionaryString)

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
)

Parameters

localName
Type: System.Xml.XmlDictionaryString

The local name of the qualified name.

namespaceUri
Type: System.Xml.XmlDictionaryString

The namespace URI of the qualified name.

ExceptionCondition
ArgumentNullException

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft