Click or drag to resize
Json.NET

BsonWriter Methods

 

The BsonWriter type exposes the following members.

Methods
  NameDescription
Public methodClose
Closes this writer. If CloseOutput is set to true, the underlying Stream is also closed. If AutoCompleteOnClose is set to true, the JSON is auto-completed.
(Overrides JsonWriter.Close().)
Public methodCloseAsync
Asynchronously closes this writer. If CloseOutput is set to true, the destination is also closed.
(Inherited from JsonWriter.)
Protected methodDispose
Releases unmanaged and - optionally - managed resources.
(Inherited from JsonWriter.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Flushes whatever is in the buffer to the underlying Stream and also flushes the underlying stream.
(Overrides JsonWriter.Flush().)
Public methodFlushAsync
Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.
(Inherited from JsonWriter.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodSetWriteState
Sets the state of the JsonWriter.
(Inherited from JsonWriter.)
Protected methodSetWriteStateAsync
Asynchronously ets the state of the JsonWriter.
(Inherited from JsonWriter.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteComment
Writes a comment /*...*/ containing the specified text.
(Overrides JsonWriter.WriteComment(String).)
Public methodWriteCommentAsync
Asynchronously writes a comment /*...*/ containing the specified text.
(Inherited from JsonWriter.)
Public methodWriteEnd()
Writes the end of the current JSON object or array.
(Inherited from JsonWriter.)
Protected methodWriteEnd(JsonToken)
Writes the end.
(Overrides JsonWriter.WriteEnd(JsonToken).)
Public methodWriteEndArray
Writes the end of an array.
(Inherited from JsonWriter.)
Public methodWriteEndArrayAsync
Asynchronously writes the end of an array.
(Inherited from JsonWriter.)
Public methodWriteEndAsync(CancellationToken)
Asynchronously writes the end of the current JSON object or array.
(Inherited from JsonWriter.)
Protected methodWriteEndAsync(JsonToken, CancellationToken)
Asynchronously writes the specified end token.
(Inherited from JsonWriter.)
Public methodWriteEndConstructor
Writes the end constructor.
(Inherited from JsonWriter.)
Public methodWriteEndConstructorAsync
Asynchronously writes the end of a constructor.
(Inherited from JsonWriter.)
Public methodWriteEndObject
Writes the end of a JSON object.
(Inherited from JsonWriter.)
Public methodWriteEndObjectAsync
Asynchronously writes the end of a JSON object.
(Inherited from JsonWriter.)
Protected methodWriteIndent
Writes indent characters.
(Inherited from JsonWriter.)
Protected methodWriteIndentAsync
Asynchronously writes indent characters.
(Inherited from JsonWriter.)
Protected methodWriteIndentSpace
Writes an indent space.
(Inherited from JsonWriter.)
Protected methodWriteIndentSpaceAsync
Asynchronously writes an indent space.
(Inherited from JsonWriter.)
Public methodWriteNull
Writes a null value.
(Overrides JsonWriter.WriteNull().)
Public methodWriteNullAsync
Asynchronously writes a null value.
(Inherited from JsonWriter.)
Public methodWriteObjectId
Writes a Byte[] value that represents a BSON object id.
Public methodWritePropertyName(String)
Writes the property name of a name/value pair on a JSON object.
(Overrides JsonWriter.WritePropertyName(String).)
Public methodWritePropertyName(String, Boolean)
Writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.)
Public methodWritePropertyNameAsync(String, CancellationToken)
Asynchronously writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.)
Public methodWritePropertyNameAsync(String, Boolean, CancellationToken)
Asynchronously writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.)
Public methodWriteRaw
Writes raw JSON.
(Overrides JsonWriter.WriteRaw(String).)
Public methodWriteRawAsync
Asynchronously writes raw JSON without changing the writer's state.
(Inherited from JsonWriter.)
Public methodWriteRawValue
Writes raw JSON where a value is expected and updates the writer's state.
(Overrides JsonWriter.WriteRawValue(String).)
Public methodWriteRawValueAsync
Asynchronously writes raw JSON where a value is expected and updates the writer's state.
(Inherited from JsonWriter.)
Public methodWriteRegex
Writes a BSON regex.
Public methodWriteStartArray
Writes the beginning of a JSON array.
(Overrides JsonWriter.WriteStartArray().)
Public methodWriteStartArrayAsync
Asynchronously writes the beginning of a JSON array.
(Inherited from JsonWriter.)
Public methodWriteStartConstructor
Writes the start of a constructor with the given name.
(Overrides JsonWriter.WriteStartConstructor(String).)
Public methodWriteStartConstructorAsync
Asynchronously writes the start of a constructor with the given name.
(Inherited from JsonWriter.)
Public methodWriteStartObject
Writes the beginning of a JSON object.
(Overrides JsonWriter.WriteStartObject().)
Public methodWriteStartObjectAsync
Asynchronously writes the beginning of a JSON object.
(Inherited from JsonWriter.)
Public methodWriteToken(JsonReader)
Writes the current JsonReader token and its children.
(Inherited from JsonWriter.)
Public methodWriteToken(JsonToken)
Writes the JsonToken token.
(Inherited from JsonWriter.)
Public methodWriteToken(JsonReader, Boolean)
Writes the current JsonReader token.
(Inherited from JsonWriter.)
Public methodWriteToken(JsonToken, Object)
Writes the JsonToken token and its value.
(Inherited from JsonWriter.)
Public methodWriteTokenAsync(JsonReader, CancellationToken)
Asynchronously writes the current JsonReader token.
(Inherited from JsonWriter.)
Public methodWriteTokenAsync(JsonToken, CancellationToken)
Asynchronously writes the JsonToken token and its value.
(Inherited from JsonWriter.)
Public methodWriteTokenAsync(JsonReader, Boolean, CancellationToken)
Asynchronously writes the current JsonReader token.
(Inherited from JsonWriter.)
Public methodWriteTokenAsync(JsonToken, Object, CancellationToken)
Asynchronously writes the JsonToken token and its value.
(Inherited from JsonWriter.)
Public methodWriteUndefined
Writes an undefined value.
(Overrides JsonWriter.WriteUndefined().)
Public methodWriteUndefinedAsync
Asynchronously writes an undefined value.
(Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Boolean>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Byte>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Char>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<DateTime>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<DateTimeOffset>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Decimal>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Double>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Guid>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Int16>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Int32>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Int64>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<SByte>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<Single>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<TimeSpan>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<UInt16>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<UInt32>) (Inherited from JsonWriter.)
Public methodWriteValue(Nullable<UInt64>) (Inherited from JsonWriter.)
Public methodWriteValue(Boolean)
Writes a Boolean value.
(Overrides JsonWriter.WriteValue(Boolean).)
Public methodWriteValue(Byte)
Writes a Byte value.
(Overrides JsonWriter.WriteValue(Byte).)
Public methodWriteValue(Byte[])
Writes a Byte[] value.
(Overrides JsonWriter.WriteValue(Byte[]).)
Public methodWriteValue(Char)
Writes a Char value.
(Overrides JsonWriter.WriteValue(Char).)
Public methodWriteValue(DateTime)
Writes a DateTime value.
(Overrides JsonWriter.WriteValue(DateTime).)
Public methodWriteValue(DateTimeOffset)
Writes a DateTimeOffset value.
(Overrides JsonWriter.WriteValue(DateTimeOffset).)
Public methodWriteValue(Decimal)
Writes a Decimal value.
(Overrides JsonWriter.WriteValue(Decimal).)
Public methodWriteValue(Double)
Writes a Double value.
(Overrides JsonWriter.WriteValue(Double).)
Public methodWriteValue(Guid)
Writes a Guid value.
(Overrides JsonWriter.WriteValue(Guid).)
Public methodWriteValue(Int16)
Writes a Int16 value.
(Overrides JsonWriter.WriteValue(Int16).)
Public methodWriteValue(Int32)
Writes a Int32 value.
(Overrides JsonWriter.WriteValue(Int32).)
Public methodWriteValue(Int64)
Writes a Int64 value.
(Overrides JsonWriter.WriteValue(Int64).)
Public methodWriteValue(Object)
Writes a Object value. An error will raised if the value cannot be written as a single JSON token.
(Overrides JsonWriter.WriteValue(Object).)
Public methodWriteValue(SByte)
Writes a SByte value.
(Overrides JsonWriter.WriteValue(SByte).)
Public methodWriteValue(Single)
Writes a Single value.
(Overrides JsonWriter.WriteValue(Single).)
Public methodWriteValue(String)
Writes a String value.
(Overrides JsonWriter.WriteValue(String).)
Public methodWriteValue(TimeSpan)
Writes a TimeSpan value.
(Overrides JsonWriter.WriteValue(TimeSpan).)
Public methodWriteValue(UInt16)
Writes a UInt16 value.
(Overrides JsonWriter.WriteValue(UInt16).)
Public methodWriteValue(UInt32)
Writes a UInt32 value.
(Overrides JsonWriter.WriteValue(UInt32).)
Public methodWriteValue(UInt64)
Writes a UInt64 value.
(Overrides JsonWriter.WriteValue(UInt64).)
Public methodWriteValue(Uri)
Writes a Uri value.
(Overrides JsonWriter.WriteValue(Uri).)
Public methodWriteValueAsync(Boolean, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Byte, CancellationToken)
Asynchronously writes a Byte value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Byte[], CancellationToken)
Asynchronously writes a Byte[] value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Char, CancellationToken)
Asynchronously writes a Char value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(DateTime, CancellationToken)
Asynchronously writes a DateTime value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(DateTimeOffset, CancellationToken)
Asynchronously writes a DateTimeOffset value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Decimal, CancellationToken)
Asynchronously writes a Decimal value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Double, CancellationToken)
Asynchronously writes a Double value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Guid, CancellationToken)
Asynchronously writes a Guid value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Int16, CancellationToken)
Asynchronously writes a Int16 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Int32, CancellationToken)
Asynchronously writes a Int32 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Int64, CancellationToken)
Asynchronously writes a Int64 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Boolean>, CancellationToken)
Asynchronously writes a Boolean value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Byte>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Char>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<DateTime>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<DateTimeOffset>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Decimal>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Double>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Guid>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Int16>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Int32>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Int64>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<SByte>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<Single>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<TimeSpan>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<UInt16>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<UInt32>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Nullable<UInt64>, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(Object, CancellationToken)
Asynchronously writes a Object value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(SByte, CancellationToken)
Asynchronously writes a SByte value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Single, CancellationToken)
Asynchronously writes a Single value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(String, CancellationToken)
Asynchronously writes a String value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(TimeSpan, CancellationToken)
Asynchronously writes a TimeSpan value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(UInt16, CancellationToken)
Asynchronously writes a UInt16 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(UInt32, CancellationToken)
Asynchronously writes a UInt32 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(UInt64, CancellationToken)
Asynchronously writes a UInt64 value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(Uri, CancellationToken)
Asynchronously writes a Uri value.
(Inherited from JsonWriter.)
Protected methodWriteValueDelimiter
Writes the JSON value delimiter.
(Inherited from JsonWriter.)
Protected methodWriteValueDelimiterAsync
Asynchronously writes the JSON value delimiter.
(Inherited from JsonWriter.)
Public methodWriteWhitespace
Writes the given white space.
(Inherited from JsonWriter.)
Public methodWriteWhitespaceAsync
Asynchronously writes the given white space.
(Inherited from JsonWriter.)
Top
See Also