WriteXmlnsAttribute Method (String, String)
Collapse the table of content
Expand the table of content

XmlDictionaryWriter.WriteXmlnsAttribute Method (String, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Writes a namespace declaration attribute.

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

public virtual void WriteXmlnsAttribute(
	string prefix,
	string namespaceUri
)

Parameters

prefix
Type: System.String
The prefix that is bound to the given namespace.
namespaceUri
Type: System.String
The namespace to which the prefix is bound.

ExceptionCondition
ArgumentNullException

namespaceUri is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft