XmlWriterSettings.NamespaceHandling XmlWriterSettings.NamespaceHandling XmlWriterSettings.NamespaceHandling XmlWriterSettings.NamespaceHandling Property

定義

取得或設定值,這個值表示 XmlWriter 是否應該在寫入 XML 內容時移除重複的命名空間宣告。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.

public:
 property System::Xml::NamespaceHandling NamespaceHandling { System::Xml::NamespaceHandling get(); void set(System::Xml::NamespaceHandling value); };
public System.Xml.NamespaceHandling NamespaceHandling { get; set; }
member this.NamespaceHandling : System.Xml.NamespaceHandling with get, set
Public Property NamespaceHandling As NamespaceHandling

屬性值

NamespaceHandling 列舉型別,用來指定是否要移除 XmlWriter 中的重複命名空間宣告。The NamespaceHandling enumeration used to specify whether to remove duplicate namespace declarations in the XmlWriter.

適用於