XmlDictionaryWriter.WriteXmlnsAttribute Method (String, XmlDictionaryString)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Writes a namespace declaration attribute.
Assembly: System.Runtime.Serialization (in System.Runtime.Serialization.dll)
Parameters
- prefix
- Type: System.String
The prefix that is bound to the given namespace.
- namespaceUri
- Type: System.Xml.XmlDictionaryString
The namespace to which the prefix is bound.
| Exception | Condition |
|---|---|
| ArgumentNullException | namespaceUri is null. |
Show: