NamespaceHandling NamespaceHandling NamespaceHandling NamespaceHandling Enum

Definition

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.

public enum class NamespaceHandling
[System.Flags]
public enum NamespaceHandling
type NamespaceHandling = 
Public Enum NamespaceHandling
Inheritance
NamespaceHandlingNamespaceHandlingNamespaceHandlingNamespaceHandling
Attributes

Fields

Default Default Default Default 0

Specifies that duplicate namespace declarations will not be removed.

OmitDuplicates OmitDuplicates OmitDuplicates OmitDuplicates 1

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

Remarks

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

Applies to