Windows apps
Collapse the table of content
Expand the table of content

WriteState Enumeration

 

Specifies the state of the XmlWriter.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public enum WriteState

Member nameDescription
Attribute

Indicates that an attribute value is being written.

Closed

Indicates that the Close method has been called.

Content

Indicates that element content is being written.

Element

Indicates that an element start tag is being written.

Error

An exception has been thrown, which has left the XmlWriter in an invalid state. You can call the Close method to put the XmlWriter in the Closed state. Any other XmlWriter method calls results in an InvalidOperationException.

Prolog

Indicates that the prolog is being written.

Start

Indicates that a Write method has not yet been called.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2016 Microsoft