Modifica

Condividi tramite


XmlTextWriter.Namespaces Property

Definition

Gets or sets a value indicating whether to do namespace support.

public:
 property bool Namespaces { bool get(); void set(bool value); };
public bool Namespaces { get; set; }
member this.Namespaces : bool with get, set
Public Property Namespaces As Boolean

Property Value

true to support namespaces; otherwise, false.

The default is true.

Exceptions

You can only change this property when in the WriteState.Start state.

Remarks

Note

Starting with the .NET Framework 2.0, we recommend that you create XmlWriter instances by using the XmlWriter.Create method and the XmlWriterSettings class to take advantage of new functionality.

This property determines whether the writer supports the W3C Namespaces in XML recommendation.

Applies to