![]() | BsonWriter Methods |
The BsonWriter type exposes the following members.
Name | Description | |
---|---|---|
![]() | Close |
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().) |
![]() | CloseAsync |
Asynchronously closes this writer.
If CloseOutput is set to true, the destination is also closed.
(Inherited from JsonWriter.) |
![]() | Dispose |
Releases unmanaged and - optionally - managed resources.
(Inherited from JsonWriter.) |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Flush |
Flushes whatever is in the buffer to the underlying Stream and also flushes the underlying stream.
(Overrides JsonWriter.Flush().) |
![]() | FlushAsync |
Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination.
(Inherited from JsonWriter.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | SetWriteState |
Sets the state of the JsonWriter.
(Inherited from JsonWriter.) |
![]() | SetWriteStateAsync |
Asynchronously ets the state of the JsonWriter.
(Inherited from JsonWriter.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WriteComment |
Writes a comment /*...*/ containing the specified text.
(Overrides JsonWriter.WriteComment(String).) |
![]() | WriteCommentAsync |
Asynchronously writes a comment /*...*/ containing the specified text.
(Inherited from JsonWriter.) |
![]() | WriteEnd() |
Writes the end of the current JSON object or array.
(Inherited from JsonWriter.) |
![]() | WriteEnd(JsonToken) |
Writes the end.
(Overrides JsonWriter.WriteEnd(JsonToken).) |
![]() | WriteEndArray |
Writes the end of an array.
(Inherited from JsonWriter.) |
![]() | WriteEndArrayAsync |
Asynchronously writes the end of an array.
(Inherited from JsonWriter.) |
![]() | WriteEndAsync(CancellationToken) |
Asynchronously writes the end of the current JSON object or array.
(Inherited from JsonWriter.) |
![]() | WriteEndAsync(JsonToken, CancellationToken) |
Asynchronously writes the specified end token.
(Inherited from JsonWriter.) |
![]() | WriteEndConstructor |
Writes the end constructor.
(Inherited from JsonWriter.) |
![]() | WriteEndConstructorAsync |
Asynchronously writes the end of a constructor.
(Inherited from JsonWriter.) |
![]() | WriteEndObject |
Writes the end of a JSON object.
(Inherited from JsonWriter.) |
![]() | WriteEndObjectAsync |
Asynchronously writes the end of a JSON object.
(Inherited from JsonWriter.) |
![]() | WriteIndent |
Writes indent characters.
(Inherited from JsonWriter.) |
![]() | WriteIndentAsync |
Asynchronously writes indent characters.
(Inherited from JsonWriter.) |
![]() | WriteIndentSpace |
Writes an indent space.
(Inherited from JsonWriter.) |
![]() | WriteIndentSpaceAsync |
Asynchronously writes an indent space.
(Inherited from JsonWriter.) |
![]() | WriteNull |
Writes a null value.
(Overrides JsonWriter.WriteNull().) |
![]() | WriteNullAsync |
Asynchronously writes a null value.
(Inherited from JsonWriter.) |
![]() | WriteObjectId |
Writes a Byte[] value that represents a BSON object id.
|
![]() | WritePropertyName(String) |
Writes the property name of a name/value pair on a JSON object.
(Overrides JsonWriter.WritePropertyName(String).) |
![]() | WritePropertyName(String, Boolean) |
Writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.) |
![]() | WritePropertyNameAsync(String, CancellationToken) |
Asynchronously writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.) |
![]() | WritePropertyNameAsync(String, Boolean, CancellationToken) |
Asynchronously writes the property name of a name/value pair of a JSON object.
(Inherited from JsonWriter.) |
![]() | WriteRaw |
Writes raw JSON.
(Overrides JsonWriter.WriteRaw(String).) |
![]() | WriteRawAsync |
Asynchronously writes raw JSON without changing the writer's state.
(Inherited from JsonWriter.) |
![]() | WriteRawValue |
Writes raw JSON where a value is expected and updates the writer's state.
(Overrides JsonWriter.WriteRawValue(String).) |
![]() | WriteRawValueAsync |
Asynchronously writes raw JSON where a value is expected and updates the writer's state.
(Inherited from JsonWriter.) |
![]() | WriteRegex |
Writes a BSON regex.
|
![]() | WriteStartArray |
Writes the beginning of a JSON array.
(Overrides JsonWriter.WriteStartArray().) |
![]() | WriteStartArrayAsync |
Asynchronously writes the beginning of a JSON array.
(Inherited from JsonWriter.) |
![]() | WriteStartConstructor |
Writes the start of a constructor with the given name.
(Overrides JsonWriter.WriteStartConstructor(String).) |
![]() | WriteStartConstructorAsync |
Asynchronously writes the start of a constructor with the given name.
(Inherited from JsonWriter.) |
![]() | WriteStartObject |
Writes the beginning of a JSON object.
(Overrides JsonWriter.WriteStartObject().) |
![]() | WriteStartObjectAsync |
Asynchronously writes the beginning of a JSON object.
(Inherited from JsonWriter.) |
![]() | WriteToken(JsonReader) |
Writes the current JsonReader token and its children.
(Inherited from JsonWriter.) |
![]() | WriteToken(JsonToken) |
Writes the JsonToken token.
(Inherited from JsonWriter.) |
![]() | WriteToken(JsonReader, Boolean) |
Writes the current JsonReader token.
(Inherited from JsonWriter.) |
![]() | WriteToken(JsonToken, Object) |
Writes the JsonToken token and its value.
(Inherited from JsonWriter.) |
![]() | WriteTokenAsync(JsonReader, CancellationToken) |
Asynchronously writes the current JsonReader token.
(Inherited from JsonWriter.) |
![]() | WriteTokenAsync(JsonToken, CancellationToken) |
Asynchronously writes the JsonToken token and its value.
(Inherited from JsonWriter.) |
![]() | WriteTokenAsync(JsonReader, Boolean, CancellationToken) |
Asynchronously writes the current JsonReader token.
(Inherited from JsonWriter.) |
![]() | WriteTokenAsync(JsonToken, Object, CancellationToken) |
Asynchronously writes the JsonToken token and its value.
(Inherited from JsonWriter.) |
![]() | WriteUndefined |
Writes an undefined value.
(Overrides JsonWriter.WriteUndefined().) |
![]() | WriteUndefinedAsync |
Asynchronously writes an undefined value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Boolean>) |
Writes a Nullable<T> of Boolean value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Byte>) |
Writes a Nullable<T> of Byte value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Char>) |
Writes a Nullable<T> of Char value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<DateTime>) |
Writes a Nullable<T> of DateTime value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<DateTimeOffset>) |
Writes a Nullable<T> of DateTimeOffset value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Decimal>) |
Writes a Nullable<T> of Decimal value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Double>) |
Writes a Nullable<T> of Double value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Guid>) |
Writes a Nullable<T> of Guid value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Int16>) |
Writes a Nullable<T> of Int16 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Int32>) |
Writes a Nullable<T> of Int32 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Int64>) |
Writes a Nullable<T> of Int64 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<SByte>) |
Writes a Nullable<T> of SByte value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<Single>) |
Writes a Nullable<T> of Single value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<TimeSpan>) |
Writes a Nullable<T> of TimeSpan value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<UInt16>) |
Writes a Nullable<T> of UInt16 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<UInt32>) |
Writes a Nullable<T> of UInt32 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Nullable<UInt64>) |
Writes a Nullable<T> of UInt64 value.
(Inherited from JsonWriter.) |
![]() | WriteValue(Boolean) |
Writes a Boolean value.
(Overrides JsonWriter.WriteValue(Boolean).) |
![]() | WriteValue(Byte) |
Writes a Byte value.
(Overrides JsonWriter.WriteValue(Byte).) |
![]() | WriteValue(Byte[]) |
Writes a Byte[] value.
(Overrides JsonWriter.WriteValue(Byte[]).) |
![]() | WriteValue(Char) |
Writes a Char value.
(Overrides JsonWriter.WriteValue(Char).) |
![]() | WriteValue(DateTime) |
Writes a DateTime value.
(Overrides JsonWriter.WriteValue(DateTime).) |
![]() | WriteValue(DateTimeOffset) |
Writes a DateTimeOffset value.
(Overrides JsonWriter.WriteValue(DateTimeOffset).) |
![]() | WriteValue(Decimal) |
Writes a Decimal value.
(Overrides JsonWriter.WriteValue(Decimal).) |
![]() | WriteValue(Double) |
Writes a Double value.
(Overrides JsonWriter.WriteValue(Double).) |
![]() | WriteValue(Guid) |
Writes a Guid value.
(Overrides JsonWriter.WriteValue(Guid).) |
![]() | WriteValue(Int16) |
Writes a Int16 value.
(Overrides JsonWriter.WriteValue(Int16).) |
![]() | WriteValue(Int32) |
Writes a Int32 value.
(Overrides JsonWriter.WriteValue(Int32).) |
![]() | WriteValue(Int64) |
Writes a Int64 value.
(Overrides JsonWriter.WriteValue(Int64).) |
![]() | WriteValue(Object) |
Writes a Object value.
An error will raised if the value cannot be written as a single JSON token.
(Overrides JsonWriter.WriteValue(Object).) |
![]() | WriteValue(SByte) |
Writes a SByte value.
(Overrides JsonWriter.WriteValue(SByte).) |
![]() | WriteValue(Single) |
Writes a Single value.
(Overrides JsonWriter.WriteValue(Single).) |
![]() | WriteValue(String) |
Writes a String value.
(Overrides JsonWriter.WriteValue(String).) |
![]() | WriteValue(TimeSpan) |
Writes a TimeSpan value.
(Overrides JsonWriter.WriteValue(TimeSpan).) |
![]() | WriteValue(UInt16) |
Writes a UInt16 value.
(Overrides JsonWriter.WriteValue(UInt16).) |
![]() | WriteValue(UInt32) |
Writes a UInt32 value.
(Overrides JsonWriter.WriteValue(UInt32).) |
![]() | WriteValue(UInt64) |
Writes a UInt64 value.
(Overrides JsonWriter.WriteValue(UInt64).) |
![]() | WriteValue(Uri) |
Writes a Uri value.
(Overrides JsonWriter.WriteValue(Uri).) |
![]() | WriteValueAsync(Boolean, CancellationToken) |
Asynchronously writes a Nullable<T> of Boolean value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Byte, CancellationToken) |
Asynchronously writes a Byte value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Byte[], CancellationToken) |
Asynchronously writes a Byte[] value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Char, CancellationToken) |
Asynchronously writes a Char value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(DateTime, CancellationToken) |
Asynchronously writes a DateTime value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(DateTimeOffset, CancellationToken) |
Asynchronously writes a DateTimeOffset value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Decimal, CancellationToken) |
Asynchronously writes a Decimal value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Double, CancellationToken) |
Asynchronously writes a Double value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Guid, CancellationToken) |
Asynchronously writes a Guid value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Int16, CancellationToken) |
Asynchronously writes a Int16 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Int32, CancellationToken) |
Asynchronously writes a Int32 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Int64, CancellationToken) |
Asynchronously writes a Int64 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Boolean>, CancellationToken) |
Asynchronously writes a Boolean value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Byte>, CancellationToken) |
Asynchronously writes a Nullable<T> of Byte value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Char>, CancellationToken) |
Asynchronously writes a Nullable<T> of Char value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<DateTime>, CancellationToken) |
Asynchronously writes a Nullable<T> of DateTime value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<DateTimeOffset>, CancellationToken) |
Asynchronously writes a Nullable<T> of DateTimeOffset value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Decimal>, CancellationToken) |
Asynchronously writes a Nullable<T> of Decimal value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Double>, CancellationToken) |
Asynchronously writes a Nullable<T> of Double value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Guid>, CancellationToken) |
Asynchronously writes a Nullable<T> of Guid value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Int16>, CancellationToken) |
Asynchronously writes a Nullable<T> of Int16 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Int32>, CancellationToken) |
Asynchronously writes a Nullable<T> of Int32 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Int64>, CancellationToken) |
Asynchronously writes a Nullable<T> of Int64 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<SByte>, CancellationToken) |
Asynchronously writes a Nullable<T> of SByte value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<Single>, CancellationToken) |
Asynchronously writes a Nullable<T> of Single value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<TimeSpan>, CancellationToken) |
Asynchronously writes a Nullable<T> of TimeSpan value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<UInt16>, CancellationToken) |
Asynchronously writes a Nullable<T> of UInt16 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<UInt32>, CancellationToken) |
Asynchronously writes a Nullable<T> of UInt32 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Nullable<UInt64>, CancellationToken) |
Asynchronously writes a Nullable<T> of UInt64 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Object, CancellationToken) |
Asynchronously writes a Object value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(SByte, CancellationToken) |
Asynchronously writes a SByte value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Single, CancellationToken) |
Asynchronously writes a Single value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(String, CancellationToken) |
Asynchronously writes a String value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(TimeSpan, CancellationToken) |
Asynchronously writes a TimeSpan value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(UInt16, CancellationToken) |
Asynchronously writes a UInt16 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(UInt32, CancellationToken) |
Asynchronously writes a UInt32 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(UInt64, CancellationToken) |
Asynchronously writes a UInt64 value.
(Inherited from JsonWriter.) |
![]() | WriteValueAsync(Uri, CancellationToken) |
Asynchronously writes a Uri value.
(Inherited from JsonWriter.) |
![]() | WriteValueDelimiter |
Writes the JSON value delimiter.
(Inherited from JsonWriter.) |
![]() | WriteValueDelimiterAsync |
Asynchronously writes the JSON value delimiter.
(Inherited from JsonWriter.) |
![]() | WriteWhitespace |
Writes the given white space.
(Inherited from JsonWriter.) |
![]() | WriteWhitespaceAsync |
Asynchronously writes the given white space.
(Inherited from JsonWriter.) |