Method AddRange
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Bson.dll
AddRange(Dictionary<string, object>)
Adds elements to the document from a dictionary of key/value pairs.
public virtual BsonDocument AddRange(Dictionary<string, object> dictionary)
Parameters
dictionary
Dictionary<string, object>
The dictionary.
Returns
The document (so method calls can be chained).
AddRange(IDictionary)
Adds elements to the document from a dictionary of key/value pairs.
public virtual BsonDocument AddRange(IDictionary dictionary)
Parameters
dictionary
IDictionary
The dictionary.
Returns
The document (so method calls can be chained).
AddRange(IEnumerable)
Adds a list of elements to the document.
public virtual BsonDocument AddRange(IEnumerable<BsonElement> elements)
Parameters
elements
IEnumerable<BsonElement>
The list of elements.
Returns
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 virtual BsonDocument AddRange(IEnumerable<KeyValuePair<string, object>> dictionary)
Parameters
dictionary
IEnumerable<KeyValuePair<string, object>>
The dictionary.
Returns
The document (so method calls can be chained).