BsonWriter Class (original) (raw)

Represents a BSON writer for some external format (see subclasses).

Inheritance Hierarchy

Namespace: MongoDB.Bson.IO
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

public abstract class BsonWriter : IBsonWriter, IDisposable

Public MustInherit Class BsonWriter Implements IBsonWriter, IDisposable

[] type BsonWriter =
class interface IBsonWriter interface IDisposable end

The BsonWriter type exposes the following members.

Constructors

| | Name | Description | | | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------- | | Protected method | BsonWriter | Initializes a new instance of the BsonWriter class. |

Top

Properties

| | Name | Description | | | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | | Public property | Disposed | Gets whether the BsonWriter has been disposed. | | Protected property | Name | Gets the name of the element being written. | | Public property | Position | Gets the position. Not all writers are able to report the position. Those that can't simply return zero. | | Public property | SerializationDepth | Gets the current serialization depth. | | Public property | Settings | Gets the settings of the writer. | | Public property | State | Gets the current state of the writer. |

Top

Methods

Extension Methods

See Also

Reference