NamespaceHandling Enumeration
Collapse the table of content
Expand the table of content

NamespaceHandling Enumeration


Specifies whether to remove duplicate namespace declarations in the XmlWriter.

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

public enum NamespaceHandling

Member nameDescription

Specifies that duplicate namespace declarations will not be removed.


Specifies that duplicate namespace declarations will be removed. For the duplicate namespace to be removed, the prefix and the namespace must match.

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

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft