Mono Class Library: System.Xml.XmlTextWriter Overview | Members

System.Xml.XmlTextWriter.Namespaces Property

Gets or sets a value indicating whether the writer supports namespaces. [Edit]

public bool Namespaces { set; get; }

Value

A bool where true indicates the writer supports namespaces; otherwise, false. The default is true. [Edit]

Exceptions

TypeReason
InvalidOperationExceptionThe XmlTextWriter.WriteState of the current instance is not WriteState.Start. [Edit]

Remarks

This property determines whether the writer supports the XML Namespaces specification (http://www.w3.org/TR/REC-xml-names).

If an attempt is made to set this property after a write operation has occurred, a InvalidOperationException is thrown.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0