Class JsonTextWriter
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Newtonsoft.Json.dll
Syntax
public class JsonTextWriter : Newtonsoft.Json.JsonWriter
Constructors
JsonTextWriter(TextWriter)
Declaration
public JsonTextWriter (System.IO.TextWriter textWriter);
Parameters
TextWriter
textWriter
|
Properties
ArrayPool
Declaration
public Newtonsoft.Json.IArrayPool<char> ArrayPool { get; set; }
Property Value
IArrayPool<Char>
|
Indentation
IndentChar
QuoteChar
QuoteName
Methods
Close()
Declaration
public override void Close ();
CloseAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task CloseAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
Flush()
Declaration
public override void Flush ();
FlushAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task FlushAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteComment(String)
WriteCommentAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteCommentAsync (string text, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
text
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteEnd(JsonToken)
Declaration
protected override void WriteEnd (Newtonsoft.Json.JsonToken token);
Parameters
JsonToken
token
|
WriteEndArrayAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteEndArrayAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteEndAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteEndAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteEndAsync(JsonToken, CancellationToken)
Declaration
protected override System.Threading.Tasks.Task WriteEndAsync (Newtonsoft.Json.JsonToken token, System.Threading.CancellationToken cancellationToken);
Parameters
JsonToken
token
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteEndConstructorAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteEndConstructorAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteEndObjectAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteEndObjectAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteIndent()
Declaration
protected override void WriteIndent ();
WriteIndentAsync(CancellationToken)
Declaration
protected override System.Threading.Tasks.Task WriteIndentAsync (System.Threading.CancellationToken cancellationToken);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteIndentSpace()
Declaration
protected override void WriteIndentSpace ();
WriteIndentSpaceAsync(CancellationToken)
Declaration
protected override System.Threading.Tasks.Task WriteIndentSpaceAsync (System.Threading.CancellationToken cancellationToken);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteNull()
Declaration
public override void WriteNull ();
WriteNullAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteNullAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WritePropertyName(String, Boolean)
Declaration
public override void WritePropertyName (string name, bool escape);
Parameters
String
name
|
Boolean
escape
|
WritePropertyName(String)
WritePropertyNameAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WritePropertyNameAsync (string name, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
name
|
CancellationToken
cancellationToken
|
Returns
Task
|
WritePropertyNameAsync(String, Boolean, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WritePropertyNameAsync (string name, bool escape, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
name
|
Boolean
escape
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteRaw(String)
WriteRawAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteRawAsync (string json, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
json
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteRawValueAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteRawValueAsync (string json, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
json
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteStartArray()
Declaration
public override void WriteStartArray ();
WriteStartArrayAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteStartArrayAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteStartConstructor(String)
WriteStartConstructorAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteStartConstructorAsync (string name, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
name
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteStartObject()
Declaration
public override void WriteStartObject ();
WriteStartObjectAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteStartObjectAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteUndefined()
Declaration
public override void WriteUndefined ();
WriteUndefinedAsync(CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteUndefinedAsync (System.Threading.CancellationToken cancellationToken = null);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValue(Uri)
WriteValue(UInt64)
Declaration
[System.CLSCompliant(false)]
public override void WriteValue (ulong value);
Parameters
UInt64
value
|
WriteValue(UInt32)
Declaration
[System.CLSCompliant(false)]
public override void WriteValue (uint value);
Parameters
UInt32
value
|
WriteValue(UInt16)
Declaration
[System.CLSCompliant(false)]
public override void WriteValue (ushort value);
Parameters
UInt16
value
|
WriteValue(TimeSpan)
WriteValue(String)
WriteValue(Single)
WriteValue(SByte)
Declaration
[System.CLSCompliant(false)]
public override void WriteValue (sbyte value);
Parameters
SByte
value
|
WriteValue(Object)
WriteValue(Nullable<Single>)
Declaration
public override void WriteValue (Nullable<float> value);
Parameters
Nullable<Single>
value
|
WriteValue(Int64)
WriteValue(Nullable<Double>)
Declaration
public override void WriteValue (Nullable<double> value);
Parameters
Nullable<Double>
value
|
WriteValue(Byte)
WriteValue(Int16)
WriteValue(Guid)
WriteValue(Double)
WriteValue(Decimal)
WriteValue(DateTimeOffset)
WriteValue(DateTime)
WriteValue(Char)
WriteValue(Byte[])
WriteValue(Boolean)
WriteValue(Int32)
WriteValueAsync(Nullable<UInt16>, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<ushort> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<UInt16>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<TimeSpan>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<TimeSpan> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<TimeSpan>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Single>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<float> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Single>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<DateTime>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<DateTime> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<DateTime>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Int64>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<long> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Int64>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<UInt32>, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<uint> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<UInt32>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<SByte>, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<sbyte> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<SByte>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<UInt64>, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<ulong> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<UInt64>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(UInt16, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (ushort value, System.Threading.CancellationToken cancellationToken = null);
Parameters
UInt16
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(SByte, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (sbyte value, System.Threading.CancellationToken cancellationToken = null);
Parameters
SByte
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Single, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (float value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Single
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (string value, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(TimeSpan, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (TimeSpan value, System.Threading.CancellationToken cancellationToken = null);
Parameters
TimeSpan
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Int32>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<int> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Int32>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(UInt32, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (uint value, System.Threading.CancellationToken cancellationToken = null);
Parameters
UInt32
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(UInt64, CancellationToken)
Declaration
[System.CLSCompliant(false)]
public override System.Threading.Tasks.Task WriteValueAsync (ulong value, System.Threading.CancellationToken cancellationToken = null);
Parameters
UInt64
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Uri, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Uri value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Uri
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Object, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (object value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Object
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Int16>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<short> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Int16>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Char>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<char> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Char>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Double>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<double> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Double>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Boolean, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (bool value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Boolean
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Byte, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (byte value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Byte
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Byte[], CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (byte[] value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Byte[]
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Char, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (char value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Char
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(DateTime, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (DateTime value, System.Threading.CancellationToken cancellationToken = null);
Parameters
DateTime
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(DateTimeOffset, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (DateTimeOffset value, System.Threading.CancellationToken cancellationToken = null);
Parameters
DateTimeOffset
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Decimal, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (decimal value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Decimal
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Double, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (double value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Double
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Guid, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Guid value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Guid
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Int16, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (short value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Int16
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Int32, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (int value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Int32
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Int64, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (long value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Int64
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Boolean>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<bool> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Boolean>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Byte>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<byte> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Byte>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<DateTimeOffset>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<DateTimeOffset> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<DateTimeOffset>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Decimal>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<decimal> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Decimal>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueAsync(Nullable<Guid>, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteValueAsync (Nullable<Guid> value, System.Threading.CancellationToken cancellationToken = null);
Parameters
Nullable<Guid>
value
|
CancellationToken
cancellationToken
|
Returns
Task
|
WriteValueDelimiter()
Declaration
protected override void WriteValueDelimiter ();
WriteValueDelimiterAsync(CancellationToken)
Declaration
protected override System.Threading.Tasks.Task WriteValueDelimiterAsync (System.Threading.CancellationToken cancellationToken);
Parameters
CancellationToken
cancellationToken
|
Returns
Task
|
WriteWhitespace(String)
WriteWhitespaceAsync(String, CancellationToken)
Declaration
public override System.Threading.Tasks.Task WriteWhitespaceAsync (string ws, System.Threading.CancellationToken cancellationToken = null);
Parameters
String
ws
|
CancellationToken
cancellationToken
|
Returns
Task
|