Click or drag to resize

IBsonWriter Interface

Represents a BSON writer.

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
public interface IBsonWriter : IDisposable

The IBsonWriter type exposes the following members.

Properties
  NameDescription
Public propertyPosition
Gets the position. Not all writers are able to report the position. Those that can't simply return zero.
Public propertySerializationDepth
Gets the current serialization depth.
Public propertySettings
Gets the settings of the writer.
Public propertyState
Gets the current state of the writer.
Top
Methods
  NameDescription
Public methodClose
Closes the writer.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodFlush
Flushes any pending data to the output destination.
Public methodPopElementNameValidator
Pops the element name validator.
Public methodPopSettings
Pops the settings.
Public methodPushElementNameValidator
Pushes the element name validator.
Public methodPushSettings
Pushes new settings for the writer.
Public methodWriteBinaryData
Writes BSON binary data to the writer.
Public methodWriteBoolean
Writes a BSON Boolean to the writer.
Public methodWriteBytes
Writes BSON binary data to the writer.
Public methodWriteDateTime
Writes a BSON DateTime to the writer.
Public methodWriteDecimal128
Writes a BSON Decimal128 to the writer.
Public methodWriteDouble
Writes a BSON Double to the writer.
Public methodWriteEndArray
Writes the end of a BSON array to the writer.
Public methodWriteEndDocument
Writes the end of a BSON document to the writer.
Public methodWriteInt32
Writes a BSON Int32 to the writer.
Public methodWriteInt64
Writes a BSON Int64 to the writer.
Public methodWriteJavaScript
Writes a BSON JavaScript to the writer.
Public methodWriteJavaScriptWithScope
Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
Public methodWriteMaxKey
Writes a BSON MaxKey to the writer.
Public methodWriteMinKey
Writes a BSON MinKey to the writer.
Public methodWriteName
Writes the name of an element to the writer.
Public methodWriteNull
Writes a BSON null to the writer.
Public methodWriteObjectId
Writes a BSON ObjectId to the writer.
Public methodWriteRawBsonArray
Writes a raw BSON array.
Public methodWriteRawBsonDocument
Writes a raw BSON document.
Public methodWriteRegularExpression
Writes a BSON regular expression to the writer.
Public methodWriteStartArray
Writes the start of a BSON array to the writer.
Public methodWriteStartDocument
Writes the start of a BSON document to the writer.
Public methodWriteString
Writes a BSON String to the writer.
Public methodWriteSymbol
Writes a BSON Symbol to the writer.
Public methodWriteTimestamp
Writes a BSON timestamp to the writer.
Public methodWriteUndefined
Writes a BSON undefined to the writer.
Top
Extension Methods
  NameDescription
Public Extension MethodWriteBinaryData
Writes a BSON binary data element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteBoolean
Writes a BSON Boolean element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteBytes
Writes a BSON binary data element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteDateTime
Writes a BSON DateTime element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteDecimal128
Writes a BSON Decimal128 element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteDouble
Writes a BSON Double element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteInt32
Writes a BSON Int32 element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteInt64
Writes a BSON Int64 element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteJavaScript
Writes a BSON JavaScript element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteJavaScriptWithScope
Writes a BSON JavaScript element to the writer (call WriteStartDocument to start writing the scope).
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteMaxKey
Writes a BSON MaxKey element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteMinKey
Writes a BSON MinKey element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteNull
Writes a BSON null element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteObjectId
Writes a BSON ObjectId element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteRawBsonArray
Writes a raw BSON array.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteRawBsonDocument
Writes a raw BSON document.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteRegularExpression
Writes a BSON regular expression element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteStartArray
Writes the start of a BSON array element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteStartDocument
Writes the start of a BSON document element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteString
Writes a BSON String element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteSymbol
Writes a BSON Symbol element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteTimestamp
Writes a BSON timestamp element to the writer.
(Defined by IBsonWriterExtensions.)
Public Extension MethodWriteUndefined
Writes a BSON undefined element to the writer.
(Defined by IBsonWriterExtensions.)
Top
See Also