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 | |
| ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------------------------------------------- |
| | BsonWriter | Initializes a new instance of the BsonWriter class. |
Properties
| | Name | Description | |
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| | Disposed | Gets whether the BsonWriter has been disposed. |
|
| Name | Gets the name of the element being written. |
|
| Position | Gets the position. Not all writers are able to report the position. Those that can't simply return zero. |
|
| SerializationDepth | Gets the current serialization depth. |
|
| Settings | Gets the settings of the writer. |
|
| State | Gets the current state of the writer. |
Methods
Extension Methods
See Also