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 | |
---|---|---|
Start | A Write method has not been called. | |
Prolog | The prolog is being written. | |
Element | An element start tag is being written. | |
Attribute | An attribute value is being written. | |
Content | The element content is being written. | |
Closed | The Close method has been called. | |
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.
Note:
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.