Method Merge
Merge(BsonDocument)
Merges another document into this one. Existing elements are not overwritten.
public virtual BsonDocument Merge(BsonDocument document)Parameters
- documentBsonDocument
- The other document. 
Returns
- BsonDocument
- The document (so method calls can be chained). 
Merge(BsonDocument, bool)
Merges another document into this one, specifying whether existing elements are overwritten.
public virtual BsonDocument Merge(BsonDocument document, bool overwriteExistingElements)Parameters
- documentBsonDocument
- The other document. 
- overwriteExistingElementsbool
- Whether to overwrite existing elements. 
Returns
- BsonDocument
- The document (so method calls can be chained).