Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

NamespaceHandling Enumeration

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
Assemblies:   System.Xml (in System.Xml.dll)
  System.Xml.ReaderWriter (in System.Xml.ReaderWriter.dll)

[FlagsAttribute]
public enum NamespaceHandling

Member nameDescription
Supported by Portable Class LibraryDefaultSpecifies that duplicate namespace declarations will not be removed.
Supported by Portable Class LibraryOmitDuplicatesSpecifies 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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft