JsonTextWriter Class (original) (raw)

Name

Description

Public method

Close

(Overrides JsonWriterClose.)

Public method

CloseAsync

Asynchronously closes this writer. If CloseOutput is set to true, the destination is also closed.

(Overrides JsonWriterCloseAsync(CancellationToken).)

Protected method

Dispose

Releases unmanaged and - optionally - managed resources.

(Inherited from JsonWriter.)

Public method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)

Public method

Flush

Flushes whatever is in the buffer to the underlying TextWriter and also flushes the underlying TextWriter.

(Overrides JsonWriterFlush.)

Public method

FlushAsync

Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.

(Overrides JsonWriterFlushAsync(CancellationToken).)

Public method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)

Public method

GetType

Gets the Type of the current instance.

(Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)

Protected method

SetWriteState

(Inherited from JsonWriter.)

Protected method

SetWriteStateAsync

Asynchronously ets the state of the JsonWriter.

(Inherited from JsonWriter.)

Public method

ToString

Returns a string that represents the current object.

(Inherited from Object.)

Public method

WriteComment

Writes a comment /*...*/ containing the specified text.

(Overrides JsonWriterWriteComment(String).)

Public method

WriteCommentAsync

Asynchronously writes a comment /*...*/ containing the specified text.

(Overrides JsonWriterWriteCommentAsync(String, CancellationToken).)

Public method

WriteEnd

Writes the end of the current JSON object or array.

(Inherited from JsonWriter.)

Protected method

WriteEnd(JsonToken)

Writes the specified end token.

(Overrides JsonWriterWriteEnd(JsonToken).)

Public method

WriteEndArray

Writes the end of an array.

(Inherited from JsonWriter.)

Public method

WriteEndArrayAsync

Asynchronously writes the end of an array.

(Overrides JsonWriterWriteEndArrayAsync(CancellationToken).)

Public method

WriteEndAsync(CancellationToken)

Asynchronously writes the end of the current JSON object or array.

(Overrides JsonWriterWriteEndAsync(CancellationToken).)

Protected method

WriteEndAsync(JsonToken, CancellationToken)

Asynchronously writes the specified end token.

(Overrides JsonWriterWriteEndAsync(JsonToken, CancellationToken).)

Public method

WriteEndConstructor

Writes the end constructor.

(Inherited from JsonWriter.)

Public method

WriteEndConstructorAsync

Asynchronously writes the end of a constructor.

(Overrides JsonWriterWriteEndConstructorAsync(CancellationToken).)

Public method

WriteEndObject

Writes the end of a JSON object.

(Inherited from JsonWriter.)

Public method

WriteEndObjectAsync

Asynchronously writes the end of a JSON object.

(Overrides JsonWriterWriteEndObjectAsync(CancellationToken).)

Protected method

WriteIndent

Writes indent characters.

(Overrides JsonWriterWriteIndent.)

Protected method

WriteIndentAsync

Asynchronously writes indent characters.

(Overrides JsonWriterWriteIndentAsync(CancellationToken).)

Protected method

WriteIndentSpace

Writes an indent space.

(Overrides JsonWriterWriteIndentSpace.)

Protected method

WriteIndentSpaceAsync

Asynchronously writes an indent space.

(Overrides JsonWriterWriteIndentSpaceAsync(CancellationToken).)

Public method

WriteNull

Writes a null value.

(Overrides JsonWriterWriteNull.)

Public method

WriteNullAsync

Asynchronously writes a null value.

(Overrides JsonWriterWriteNullAsync(CancellationToken).)

Public method

WritePropertyName(String)

Writes the property name of a name/value pair on a JSON object.

(Overrides JsonWriterWritePropertyName(String).)

Public method

WritePropertyName(String, Boolean)

Writes the property name of a name/value pair on a JSON object.

(Overrides JsonWriterWritePropertyName(String, Boolean).)

Public method

WritePropertyNameAsync(String, CancellationToken)

Asynchronously writes the property name of a name/value pair of a JSON object.

(Overrides JsonWriterWritePropertyNameAsync(String, CancellationToken).)

Public method

WritePropertyNameAsync(String, Boolean, CancellationToken)

Asynchronously writes the property name of a name/value pair of a JSON object.

(Overrides JsonWriterWritePropertyNameAsync(String, Boolean, CancellationToken).)

Public method

WriteRaw

Writes raw JSON.

(Overrides JsonWriterWriteRaw(String).)

Public method

WriteRawAsync

Asynchronously writes raw JSON without changing the writer's state.

(Overrides JsonWriterWriteRawAsync(String, CancellationToken).)

Public method

WriteRawValue

Writes raw JSON where a value is expected and updates the writer's state.

(Inherited from JsonWriter.)

Public method

WriteRawValueAsync

Asynchronously writes raw JSON where a value is expected and updates the writer's state.

(Overrides JsonWriterWriteRawValueAsync(String, CancellationToken).)

Public method

WriteStartArray

Writes the beginning of a JSON array.

(Overrides JsonWriterWriteStartArray.)

Public method

WriteStartArrayAsync

Asynchronously writes the beginning of a JSON array.

(Overrides JsonWriterWriteStartArrayAsync(CancellationToken).)

Public method

WriteStartConstructor

Writes the start of a constructor with the given name.

(Overrides JsonWriterWriteStartConstructor(String).)

Public method

WriteStartConstructorAsync

Asynchronously writes the start of a constructor with the given name.

(Overrides JsonWriterWriteStartConstructorAsync(String, CancellationToken).)

Public method

WriteStartObject

Writes the beginning of a JSON object.

(Overrides JsonWriterWriteStartObject.)

Public method

WriteStartObjectAsync

Asynchronously writes the beginning of a JSON object.

(Overrides JsonWriterWriteStartObjectAsync(CancellationToken).)

Public method

WriteToken(JsonReader)

Writes the current JsonReader token and its children.

(Inherited from JsonWriter.)

Public method

WriteToken(JsonToken)

(Inherited from JsonWriter.)

Public method

WriteToken(JsonReader, Boolean)

(Inherited from JsonWriter.)

Public method

WriteToken(JsonToken, Object)

Writes the JsonToken token and its value.

(Inherited from JsonWriter.)

Public method

WriteTokenAsync(JsonReader, CancellationToken)

Asynchronously writes the current JsonReader token.

(Inherited from JsonWriter.)

Public method

WriteTokenAsync(JsonToken, CancellationToken)

Asynchronously writes the JsonToken token and its value.

(Inherited from JsonWriter.)

Public method

WriteTokenAsync(JsonReader, Boolean, CancellationToken)

Asynchronously writes the current JsonReader token.

(Inherited from JsonWriter.)

Public method

WriteTokenAsync(JsonToken, Object, CancellationToken)

Asynchronously writes the JsonToken token and its value.

(Inherited from JsonWriter.)

Public method

WriteUndefined

Writes an undefined value.

(Overrides JsonWriterWriteUndefined.)

Public method

WriteUndefinedAsync

Asynchronously writes an undefined value.

(Overrides JsonWriterWriteUndefinedAsync(CancellationToken).)

Public method

WriteValue(Boolean)

(Overrides JsonWriterWriteValue(Boolean).)

Public method

WriteValue(Byte)

Writes a Byte value.

(Overrides JsonWriterWriteValue(Byte).)

Public method

WriteValue(Byte)

Writes a Byte[] value.

(Overrides JsonWriterWriteValue(Byte).)

Public method

WriteValue(Char)

Writes a Char value.

(Overrides JsonWriterWriteValue(Char).)

Public method

WriteValue(DateTime)

(Overrides JsonWriterWriteValue(DateTime).)

Public method

WriteValue(DateTimeOffset)

(Overrides JsonWriterWriteValue(DateTimeOffset).)

Public method

WriteValue(Decimal)

(Overrides JsonWriterWriteValue(Decimal).)

Public method

WriteValue(Double)

(Overrides JsonWriterWriteValue(Double).)

Public method

WriteValue(Guid)

Writes a Guid value.

(Overrides JsonWriterWriteValue(Guid).)

Public method

WriteValue(Int16)

Writes a Int16 value.

(Overrides JsonWriterWriteValue(Int16).)

Public method

WriteValue(Int32)

Writes a Int32 value.

(Overrides JsonWriterWriteValue(Int32).)

Public method

WriteValue(Int64)

Writes a Int64 value.

(Overrides JsonWriterWriteValue(Int64).)

Public method

WriteValue(NullableDouble)

(Overrides JsonWriterWriteValue(NullableDouble).)

Public method

WriteValue(NullableSingle)

(Overrides JsonWriterWriteValue(NullableSingle).)

Public method

WriteValue(Object)

Writes a Object value. An error will raised if the value cannot be written as a single JSON token.

(Overrides JsonWriterWriteValue(Object).)

Public method

WriteValue(SByte)

Writes a SByte value.

(Overrides JsonWriterWriteValue(SByte).)

Public method

WriteValue(Single)

(Overrides JsonWriterWriteValue(Single).)

Public method

WriteValue(String)

(Overrides JsonWriterWriteValue(String).)

Public method

WriteValue(TimeSpan)

(Overrides JsonWriterWriteValue(TimeSpan).)

Public method

WriteValue(UInt16)

(Overrides JsonWriterWriteValue(UInt16).)

Public method

WriteValue(UInt32)

(Overrides JsonWriterWriteValue(UInt32).)

Public method

WriteValue(UInt64)

(Overrides JsonWriterWriteValue(UInt64).)

Public method

WriteValue(Uri)

Writes a Uri value.

(Overrides JsonWriterWriteValue(Uri).)

Public method

WriteValue(NullableBoolean)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableByte)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableChar)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableDateTime)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableDateTimeOffset)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableDecimal)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableGuid)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableInt16)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableInt32)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableInt64)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableSByte)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableTimeSpan)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableUInt16)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableUInt32)

(Inherited from JsonWriter.)

Public method

WriteValue(NullableUInt64)

(Inherited from JsonWriter.)

Public method

WriteValueAsync(Boolean, CancellationToken)

(Overrides JsonWriterWriteValueAsync(Boolean, CancellationToken).)

Public method

WriteValueAsync(Byte, CancellationToken)

Asynchronously writes a Byte value.

(Overrides JsonWriterWriteValueAsync(Byte, CancellationToken).)

Public method

WriteValueAsync(Byte, CancellationToken)

Asynchronously writes a Byte[] value.

(Overrides JsonWriterWriteValueAsync(Byte, CancellationToken).)

Public method

WriteValueAsync(Char, CancellationToken)

Asynchronously writes a Char value.

(Overrides JsonWriterWriteValueAsync(Char, CancellationToken).)

Public method

WriteValueAsync(DateTime, CancellationToken)

Asynchronously writes a DateTime value.

(Overrides JsonWriterWriteValueAsync(DateTime, CancellationToken).)

Public method

WriteValueAsync(DateTimeOffset, CancellationToken)

(Overrides JsonWriterWriteValueAsync(DateTimeOffset, CancellationToken).)

Public method

WriteValueAsync(Decimal, CancellationToken)

Asynchronously writes a Decimal value.

(Overrides JsonWriterWriteValueAsync(Decimal, CancellationToken).)

Public method

WriteValueAsync(Double, CancellationToken)

Asynchronously writes a Double value.

(Overrides JsonWriterWriteValueAsync(Double, CancellationToken).)

Public method

WriteValueAsync(Guid, CancellationToken)

Asynchronously writes a Guid value.

(Overrides JsonWriterWriteValueAsync(Guid, CancellationToken).)

Public method

WriteValueAsync(Int16, CancellationToken)

Asynchronously writes a Int16 value.

(Overrides JsonWriterWriteValueAsync(Int16, CancellationToken).)

Public method

WriteValueAsync(Int32, CancellationToken)

Asynchronously writes a Int32 value.

(Overrides JsonWriterWriteValueAsync(Int32, CancellationToken).)

Public method

WriteValueAsync(Int64, CancellationToken)

Asynchronously writes a Int64 value.

(Overrides JsonWriterWriteValueAsync(Int64, CancellationToken).)

Public method

WriteValueAsync(NullableBoolean, CancellationToken)

Asynchronously writes a Boolean value.

(Overrides JsonWriterWriteValueAsync(NullableBoolean, CancellationToken).)

Public method

WriteValueAsync(NullableByte, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableByte, CancellationToken).)

Public method

WriteValueAsync(NullableChar, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableChar, CancellationToken).)

Public method

WriteValueAsync(NullableDateTime, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableDateTime, CancellationToken).)

Public method

WriteValueAsync(NullableDateTimeOffset, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableDateTimeOffset, CancellationToken).)

Public method

WriteValueAsync(NullableDecimal, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableDecimal, CancellationToken).)

Public method

WriteValueAsync(NullableDouble, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableDouble, CancellationToken).)

Public method

WriteValueAsync(NullableGuid, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableGuid, CancellationToken).)

Public method

WriteValueAsync(NullableInt16, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableInt16, CancellationToken).)

Public method

WriteValueAsync(NullableInt32, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableInt32, CancellationToken).)

Public method

WriteValueAsync(NullableInt64, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableInt64, CancellationToken).)

Public method

WriteValueAsync(NullableSByte, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableSByte, CancellationToken).)

Public method

WriteValueAsync(NullableSingle, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableSingle, CancellationToken).)

Public method

WriteValueAsync(NullableTimeSpan, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableTimeSpan, CancellationToken).)

Public method

WriteValueAsync(NullableUInt16, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableUInt16, CancellationToken).)

Public method

WriteValueAsync(NullableUInt32, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableUInt32, CancellationToken).)

Public method

WriteValueAsync(NullableUInt64, CancellationToken)

(Overrides JsonWriterWriteValueAsync(NullableUInt64, CancellationToken).)

Public method

WriteValueAsync(Object, CancellationToken)

Asynchronously writes a Object value.

(Overrides JsonWriterWriteValueAsync(Object, CancellationToken).)

Public method

WriteValueAsync(SByte, CancellationToken)

Asynchronously writes a SByte value.

(Overrides JsonWriterWriteValueAsync(SByte, CancellationToken).)

Public method

WriteValueAsync(Single, CancellationToken)

Asynchronously writes a Single value.

(Overrides JsonWriterWriteValueAsync(Single, CancellationToken).)

Public method

WriteValueAsync(String, CancellationToken)

Asynchronously writes a String value.

(Overrides JsonWriterWriteValueAsync(String, CancellationToken).)

Public method

WriteValueAsync(TimeSpan, CancellationToken)

Asynchronously writes a TimeSpan value.

(Overrides JsonWriterWriteValueAsync(TimeSpan, CancellationToken).)

Public method

WriteValueAsync(UInt16, CancellationToken)

Asynchronously writes a UInt16 value.

(Overrides JsonWriterWriteValueAsync(UInt16, CancellationToken).)

Public method

WriteValueAsync(UInt32, CancellationToken)

Asynchronously writes a UInt32 value.

(Overrides JsonWriterWriteValueAsync(UInt32, CancellationToken).)

Public method

WriteValueAsync(UInt64, CancellationToken)

Asynchronously writes a UInt64 value.

(Overrides JsonWriterWriteValueAsync(UInt64, CancellationToken).)

Public method

WriteValueAsync(Uri, CancellationToken)

Asynchronously writes a Uri value.

(Overrides JsonWriterWriteValueAsync(Uri, CancellationToken).)

Protected method

WriteValueDelimiter

Writes the JSON value delimiter.

(Overrides JsonWriterWriteValueDelimiter.)

Protected method

WriteValueDelimiterAsync

Asynchronously writes the JSON value delimiter.

(Overrides JsonWriterWriteValueDelimiterAsync(CancellationToken).)

Public method

WriteWhitespace

Writes the given white space.

(Overrides JsonWriterWriteWhitespace(String).)

Public method

WriteWhitespaceAsync

Asynchronously writes the given white space.

(Overrides JsonWriterWriteWhitespaceAsync(String, CancellationToken).)