Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

[FlagsAttribute]
public enum NamespaceHandling

Member nameDescription
Supported by Silverlight for Windows PhoneSupported by Xbox 360DefaultThe default behavior does not remove duplicate namespace declarations.
Supported by Silverlight for Windows PhoneSupported by Xbox 360OmitDuplicatesRemove 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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2017 Microsoft