Export (0) Print
Expand All

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:
© 2014 Microsoft