WriteState

WriteState enum

Specifies the state of the XmlWriter.

enum class WriteState

Values

NameValueDescription
Start0Indicates that the XmlWriter::Write method has not yet been called.
Prolog1Indicates that the prolog is being written.
Element2Indicates that an element start tag is being written.
Attribute3Indicates that an attribute value is being written.
Content4Indicates that element content is being written.
Closed5Indicates that the XmlWriter::Close method has been called.
Error6An exception has been thrown, which has left the XmlWriter in an invalid state. You can call the XmlWriter::Close method to put the XmlWriter in the WriteState::Closed state. Any other XmlWriter method calls results in an InvalidOperationException.

See Also