NamespaceHandling Property

XmlWriterSettings.NamespaceHandling Property

.NET Framework (current version)
 

Gets or sets a value that indicates whether the XmlWriter should remove duplicate namespace declarations when writing XML content. The default behavior is for the writer to output all namespace declarations that are present in the writer's namespace resolver.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public NamespaceHandling NamespaceHandling { get; set; }

Property Value

Type: System.Xml.NamespaceHandling

The NamespaceHandling enumeration used to specify whether to remove duplicate namespace declarations in the XmlWriter.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft