NamespaceHandling Enumeration

NamespaceHandling Enumeration

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

Specifies whether to remove duplicate namespace declarations in the XmlWriter.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

No code example is currently available or this language may not be supported.

Member nameDescription
DefaultThe default behavior does not remove duplicate namespace declarations.
OmitDuplicatesRemove duplicate namespace declarations. For the duplicate namespace to be removed, the prefix and the namespace have to match.

Use NamespaceHandling property to specify whether to remove duplicate namespace declarations in the XmlWriter. For the duplicate namespace to be removed, the prefix and the namespace have to match.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft