Метод | Описание | |
---|---|---|
Close ( ) : void |
Closes this stream and the underlying stream.
|
|
Flush ( ) : void |
Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
|
JTokenWriter ( ) : System |
Initializes a new instance of the JTokenWriter class.
|
|
JTokenWriter ( JContainer container ) : System |
Initializes a new instance of the JTokenWriter class writing to the given JContainer.
|
|
WriteComment ( string text ) : void |
Writes a comment
|
|
WriteNull ( ) : void |
Writes a null value.
|
|
WritePropertyName ( string name ) : void |
Writes the property name of a name/value pair on a JSON object.
|
|
WriteRaw ( string json ) : void |
Writes raw JSON.
|
|
WriteStartArray ( ) : void |
Writes the beginning of a JSON array.
|
|
WriteStartConstructor ( string name ) : void |
Writes the start of a constructor with the given name.
|
|
WriteStartObject ( ) : void |
Writes the beginning of a JSON object.
|
|
WriteUndefined ( ) : void |
Writes an undefined value.
|
|
WriteValue ( System.DateTime value ) : void |
Writes a DateTime value.
|
|
WriteValue ( DateTimeOffset value ) : void |
Writes a DateTimeOffset value.
|
|
WriteValue ( Guid value ) : void |
Writes a Guid value.
|
|
WriteValue ( TimeSpan value ) : void |
Writes a TimeSpan value.
|
|
WriteValue ( Uri value ) : void |
Writes a Uri value.
|
|
WriteValue ( bool value ) : void |
Writes a Boolean value.
|
|
WriteValue ( byte value ) : void |
Writes a Byte value.
|
|
WriteValue ( char value ) : void |
Writes a Char value.
|
|
WriteValue ( decimal value ) : void |
Writes a Decimal value.
|
|
WriteValue ( double value ) : void |
Writes a Double value.
|
|
WriteValue ( float value ) : void |
Writes a Single value.
|
|
WriteValue ( int value ) : void |
Writes a Int32 value.
|
|
WriteValue ( long value ) : void |
Writes a Int64 value.
|
|
WriteValue ( object value ) : void |
Writes a Object value. An error will be raised if the value cannot be written as a single JSON token.
|
|
WriteValue ( short value ) : void |
Writes a Int16 value.
|
|
WriteValue ( string value ) : void |
Writes a String value.
|
Метод | Описание | |
---|---|---|
WriteEnd ( JsonToken token ) : void |
Writes the end.
|
Метод | Описание | |
---|---|---|
AddParent ( JContainer container ) : void | ||
AddValue ( Newtonsoft.Json.Linq.JValue value, JsonToken token ) : void | ||
AddValue ( object value, JsonToken token ) : void | ||
RemoveParent ( ) : void | ||
WriteToken ( JsonReader reader, bool writeChildren, bool writeDateConstructorAsDate, bool writeComments ) : void | ||
WriteValue ( sbyte value ) : void | ||
WriteValue ( uint value ) : void | ||
WriteValue ( ulong value ) : void | ||
WriteValue ( ushort value ) : void |
public JTokenWriter ( JContainer container ) : System | ||
container | JContainer | The container being written to. |
Результат | System |
public WriteComment ( string text ) : void | ||
text | string | Text to place inside the comment. |
Результат | void |
protected WriteEnd ( JsonToken token ) : void | ||
token | JsonToken | The token. |
Результат | void |
public WritePropertyName ( string name ) : void | ||
name | string | The name of the property. |
Результат | void |
public WriteRaw ( string json ) : void | ||
json | string | The raw JSON to write. |
Результат | void |
public WriteStartConstructor ( string name ) : void | ||
name | string | The name of the constructor. |
Результат | void |
public WriteValue ( System.DateTime value ) : void | ||
value | System.DateTime | The |
Результат | void |
public WriteValue ( DateTimeOffset value ) : void | ||
value | DateTimeOffset | The |
Результат | void |
public WriteValue ( Guid value ) : void | ||
value | Guid | The |
Результат | void |
public WriteValue ( TimeSpan value ) : void | ||
value | TimeSpan | The |
Результат | void |
public WriteValue ( Uri value ) : void | ||
value | Uri | The |
Результат | void |
public WriteValue ( bool value ) : void | ||
value | bool | The |
Результат | void |
public WriteValue ( byte value ) : void | ||
value | byte | The |
Результат | void |
public WriteValue ( char value ) : void | ||
value | char | The |
Результат | void |
public WriteValue ( decimal value ) : void | ||
value | decimal | The |
Результат | void |
public WriteValue ( double value ) : void | ||
value | double | The |
Результат | void |
public WriteValue ( float value ) : void | ||
value | float | The |
Результат | void |
public WriteValue ( int value ) : void | ||
value | int | The |
Результат | void |
public WriteValue ( long value ) : void | ||
value | long | The |
Результат | void |
public WriteValue ( object value ) : void | ||
value | object | The |
Результат | void |
public WriteValue ( short value ) : void | ||
value | short | The |
Результат | void |
public WriteValue ( string value ) : void | ||
value | string | The |
Результат | void |