Freigeben über


NamespaceHandling Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
<FlagsAttribute> _
Public Enumeration NamespaceHandling
[FlagsAttribute]
public enum NamespaceHandling

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Default The default behavior does not remove duplicate namespace declarations.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 OmitDuplicates Remove duplicate namespace declarations. For the duplicate namespace to be removed, the prefix and the namespace have to match.

Remarks

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.

Version Information

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

Platforms

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

See Also

Reference