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 JsonWriterClose.)
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 JsonWriterFlush.)
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 JsonWriterWriteComment(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 JsonWriterWriteEnd(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 JsonWriterWriteNull.)
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 JsonWriterWritePropertyName(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 JsonWriterWriteRaw(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 JsonWriterWriteRawValue(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 JsonWriterWriteStartArray.)
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 JsonWriterWriteStartConstructor(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 JsonWriterWriteStartObject.)
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 JsonWriterWriteUndefined.)
Public methodWriteUndefinedAsync
Asynchronously writes an undefined value.
(Inherited from JsonWriter.)
Public methodWriteValue(NullableBoolean) (Inherited from JsonWriter.)
Public methodWriteValue(NullableByte) (Inherited from JsonWriter.)
Public methodWriteValue(NullableChar) (Inherited from JsonWriter.)
Public methodWriteValue(NullableDateTime) (Inherited from JsonWriter.)
Public methodWriteValue(NullableDateTimeOffset) (Inherited from JsonWriter.)
Public methodWriteValue(NullableDecimal) (Inherited from JsonWriter.)
Public methodWriteValue(NullableDouble) (Inherited from JsonWriter.)
Public methodWriteValue(NullableGuid) (Inherited from JsonWriter.)
Public methodWriteValue(NullableInt16) (Inherited from JsonWriter.)
Public methodWriteValue(NullableInt32) (Inherited from JsonWriter.)
Public methodWriteValue(NullableInt64) (Inherited from JsonWriter.)
Public methodWriteValue(NullableSByte) (Inherited from JsonWriter.)
Public methodWriteValue(NullableSingle) (Inherited from JsonWriter.)
Public methodWriteValue(NullableTimeSpan) (Inherited from JsonWriter.)
Public methodWriteValue(NullableUInt16) (Inherited from JsonWriter.)
Public methodWriteValue(NullableUInt32) (Inherited from JsonWriter.)
Public methodWriteValue(NullableUInt64) (Inherited from JsonWriter.)
Public methodWriteValue(Boolean)
Writes a Boolean value.
(Overrides JsonWriterWriteValue(Boolean).)
Public methodWriteValue(Byte)
Writes a Byte value.
(Overrides JsonWriterWriteValue(Byte).)
Public methodWriteValue(Byte)
Writes a Byte[] value.
(Overrides JsonWriterWriteValue(Byte).)
Public methodWriteValue(Char)
Writes a Char value.
(Overrides JsonWriterWriteValue(Char).)
Public methodWriteValue(DateTime)
Writes a DateTime value.
(Overrides JsonWriterWriteValue(DateTime).)
Public methodWriteValue(DateTimeOffset)
Writes a DateTimeOffset value.
(Overrides JsonWriterWriteValue(DateTimeOffset).)
Public methodWriteValue(Decimal)
Writes a Decimal value.
(Overrides JsonWriterWriteValue(Decimal).)
Public methodWriteValue(Double)
Writes a Double value.
(Overrides JsonWriterWriteValue(Double).)
Public methodWriteValue(Guid)
Writes a Guid value.
(Overrides JsonWriterWriteValue(Guid).)
Public methodWriteValue(Int16)
Writes a Int16 value.
(Overrides JsonWriterWriteValue(Int16).)
Public methodWriteValue(Int32)
Writes a Int32 value.
(Overrides JsonWriterWriteValue(Int32).)
Public methodWriteValue(Int64)
Writes a Int64 value.
(Overrides JsonWriterWriteValue(Int64).)
Public methodWriteValue(Object)
Writes a Object value. An error will raised if the value cannot be written as a single JSON token.
(Overrides JsonWriterWriteValue(Object).)
Public methodWriteValue(SByte)
Writes a SByte value.
(Overrides JsonWriterWriteValue(SByte).)
Public methodWriteValue(Single)
Writes a Single value.
(Overrides JsonWriterWriteValue(Single).)
Public methodWriteValue(String)
Writes a String value.
(Overrides JsonWriterWriteValue(String).)
Public methodWriteValue(TimeSpan)
Writes a TimeSpan value.
(Overrides JsonWriterWriteValue(TimeSpan).)
Public methodWriteValue(UInt16)
Writes a UInt16 value.
(Overrides JsonWriterWriteValue(UInt16).)
Public methodWriteValue(UInt32)
Writes a UInt32 value.
(Overrides JsonWriterWriteValue(UInt32).)
Public methodWriteValue(UInt64)
Writes a UInt64 value.
(Overrides JsonWriterWriteValue(UInt64).)
Public methodWriteValue(Uri)
Writes a Uri value.
(Overrides JsonWriterWriteValue(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(NullableBoolean, CancellationToken)
Asynchronously writes a Boolean value.
(Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableByte, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableChar, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableDateTime, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableDateTimeOffset, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableDecimal, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableDouble, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableGuid, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableInt16, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableInt32, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableInt64, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableSByte, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableSingle, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableTimeSpan, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableUInt16, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableUInt32, CancellationToken) (Inherited from JsonWriter.)
Public methodWriteValueAsync(NullableUInt64, 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