Method AddRange
AddRange(Dictionary<string, object>)
Adds elements to the document from a dictionary of key/value pairs.
public override BsonDocument AddRange(Dictionary<string, object> dictionary)Parameters
- dictionaryDictionary<string, object>
- The dictionary. 
Returns
- BsonDocument
- The document (so method calls can be chained). 
AddRange(IDictionary)
Adds elements to the document from a dictionary of key/value pairs.
public override BsonDocument AddRange(IDictionary dictionary)Parameters
- dictionaryIDictionary
- The dictionary. 
Returns
- BsonDocument
- The document (so method calls can be chained). 
AddRange(IEnumerable<BsonElement>)
Adds a list of elements to the document.
public override BsonDocument AddRange(IEnumerable<BsonElement> elements)Parameters
- elementsIEnumerable<BsonElement>
- The list of elements. 
Returns
- BsonDocument
- The document (so method calls can be chained). 
AddRange(IEnumerable<KeyValuePair<string, object>>)
Adds elements to the document from a dictionary of key/value pairs.
public override BsonDocument AddRange(IEnumerable<KeyValuePair<string, object>> dictionary)Parameters
- dictionaryIEnumerable<KeyValuePair<string, object>>
- The dictionary. 
Returns
- BsonDocument
- The document (so method calls can be chained).