System.Xml.XmlWriter.WriteState Property

When overridden in a derived class, gets the state of the writer.

Syntax

public abstract WriteState WriteState { get; }

Value

One of the members of the System.Xml.WriteState enumeration.

Remarks

Operation

As described above.

This property is read-only.

Note to Inheritors
This property must be overridden in order to provide the functionality as described herein, as there is no default implementation.

Usage
Use this property to query the current state, for example, whether the writer is newly initialized, writing specific XML structures, or closed.

Requirements

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