Class BsonDocumentWriter
Represents a BSON writer to a BsonDocument.
- Inheritance
-
Bson
Document Writer
- Implements
- Inherited Members
- Extension Methods
Constructors
- Bson
Document Writer(Bson Document) Initializes a new instance of the BsonDocumentWriter class.
- Bson
Document Writer(Bson Document, Bson Document Writer Settings) Initializes a new instance of the BsonDocumentWriter class.
Properties
- Document
Gets the BsonDocument being written to.
- Position
Gets the position. Not all writers are able to report the position. Those that can't simply return zero.
Methods
- Close()
Closes the writer.
- Dispose(bool)
Disposes of any resources used by the writer.
- Flush()
Flushes any pending data to the output destination.
- Write
Binary Data(Bson Binary Data) Writes BSON binary data to the writer.
- Write
Boolean(bool) Writes a BSON Boolean to the writer.
- Write
Bytes(byte[]) Writes BSON binary data to the writer.
- Write
Date Time(long) Writes a BSON DateTime to the writer.
- Write
Decimal128(Decimal128) Writes a BSON Decimal128 to the writer.
- Write
Double(double) Writes a BSON Double to the writer.
- Write
End Array() Writes the end of a BSON array to the writer.
- Write
End Document() Writes the end of a BSON document to the writer.
- Write
Int32(int) Writes a BSON Int32 to the writer.
- Write
Int64(long) Writes a BSON Int64 to the writer.
- Write
Java Script(string) Writes a BSON JavaScript to the writer.
- Write
Java Script With Scope(string) Writes a BSON JavaScript to the writer (call WriteStartDocument to start writing the scope).
- Write
Max Key() Writes a BSON MaxKey to the writer.
- Write
Min Key() Writes a BSON MinKey to the writer.
- Write
Name(string) Writes the name of an element to the writer.
- Write
Null() Writes a BSON null to the writer.
- Write
Object Id(Object Id) Writes a BSON ObjectId to the writer.
- Write
Regular Expression(Bson Regular Expression) Writes a BSON regular expression to the writer.
- Write
Start Array() Writes the start of a BSON array to the writer.
- Write
Start Document() Writes the start of a BSON document to the writer.
- Write
String(string) Writes a BSON String to the writer.
- Write
Symbol(string) Writes a BSON Symbol to the writer.
- Write
Timestamp(long) Writes a BSON timestamp to the writer.
- Write
Undefined() Writes a BSON undefined to the writer.