Method Merge
Merge(BsonDocument)
Merges another document into this one. Existing elements are not overwritten.
public override BsonDocument Merge(BsonDocument document)
Parameters
document
BsonDocumentThe 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 override BsonDocument Merge(BsonDocument document, bool overwriteExistingElements)
Parameters
document
BsonDocumentThe other document.
overwriteExistingElements
boolWhether to overwrite existing elements.
Returns
- BsonDocument
The document (so method calls can be chained).