Table of Contents

Constructor BsonDocumentWriter

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

BsonDocumentWriter(BsonDocument)

Initializes a new instance of the BsonDocumentWriter class.

public BsonDocumentWriter(BsonDocument document)

Parameters

document BsonDocument

The 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 BsonDocument

The document to write to (normally starts out as an empty document).

settings BsonDocumentWriterSettings

The settings.