Constructor BsonDocumentWriter
BsonDocumentWriter(BsonDocument)
Initializes a new instance of the BsonDocumentWriter class.
public BsonDocumentWriter(BsonDocument document)
Parameters
document
BsonDocumentThe document to write to (normally starts out as an empty document).
BsonDocumentWriter(BsonDocument, BsonDocumentWriterSettings)
Initializes a new instance of the BsonDocumentWriter class.
public BsonDocumentWriter(BsonDocument document, BsonDocumentWriterSettings settings)
Parameters
document
BsonDocumentThe document to write to (normally starts out as an empty document).
settings
BsonDocumentWriterSettingsThe settings.