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.
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.
Assembly: System.Xml (in System.Xml.dll)
public: property NamespaceHandling NamespaceHandling { NamespaceHandling get(); void set(NamespaceHandling value); }
Property Value
Type: System.Xml::NamespaceHandlingThe NamespaceHandling enumeration used to specify whether to remove duplicate namespace declarations in the XmlWriter.
Universal Windows Platform
Available since 8
.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
Available since 8
.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
Show: