Condividi tramite


WriteState Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the state of the XmlWriter.

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

Syntax

'Declaration
Public Enumeration WriteState
public enum WriteState

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Start A Write method has not been called.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Prolog The prolog is being written.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Element An element start tag is being written.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Attribute An attribute value is being written.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Content The element content is being written.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Closed The Close method has been called.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 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 call will result in an InvalidOperationException.
NoteNote:
This field was added in the .NET Framework version 2.0 release.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference