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

System.Xml.XmlTextReader.Namespaces Property

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

public bool Namespaces { set; get; }

Value

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

Exceptions

TypeReason
InvalidOperationExceptionWhen attempting to set the property, the XmlTextReader.ReadState was not ReadState.Initial. [Edit]

Remarks

This property determines whether the reader supports the XML Namespaces specification (http://www.w3.org/TR/REC-xml-names). If this property is false, namespaces are ignored and the reader allows names to contain multiple colon characters.

If an attempt is made to set this property after a read 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