Freigeben über


XmlDictionaryWriter.WriteQualifiedName Method (XmlDictionaryString, XmlDictionaryString)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Writes 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)

Syntax

'Declaration
Public Overridable Sub WriteQualifiedName ( _
    localName As XmlDictionaryString, _
    namespaceUri As XmlDictionaryString _
)
public virtual void WriteQualifiedName(
    XmlDictionaryString localName,
    XmlDictionaryString namespaceUri
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

localName is nulla null reference (Nothing in Visual Basic).

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.