Click or drag to resize

WrappingBsonWriter Class

An abstract base class for an IBsonWriter that wraps another IBsonWriter.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.IOWrappingBsonWriter

Namespace:  MongoDB.Bson.IO
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.9.0+32b058abcdf2c7e8d9dd3a676d207b31897eee2e
Syntax
public abstract class WrappingBsonWriter : IBsonWriter, 
	IDisposable

The WrappingBsonWriter type exposes the following members.

Constructors
  NameDescription
Public methodWrappingBsonWriter
Initializes a new instance of the WrappingBsonWriter class.
Top
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.
Public propertyWrapped
Gets the wrapped writer.
Top
Methods
  NameDescription
Public methodClose
Closes the writer.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
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 any pending data to the output destination.
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.)
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.
Protected methodThrowIfDisposed
Throws if disposed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
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 MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
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