Json.NET - Quick Starts & API Documentation
WriteState Enumeration
Namespaces ► Newtonsoft.Json ► WriteState
Specifies the state of the JsonWriter.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public enum WriteState
Public Enumeration WriteState
public enum class WriteState
Members
Member | Description |
---|---|
Error |
An exception has been thrown, which has left the JsonWriter in an invalid state.
You may call the Close()()()() method to put the JsonWriter in the Closed state.
Any other JsonWriter method calls results in an InvalidOperationException being thrown.
|
Closed |
The Close()()()() method has been called.
|
Object |
An object is being written.
|
Array |
A array is being written.
|
Constructor |
A constructor is being written.
|
Property |
A property is being written.
|
Start |
A write method has not been called.
|