Click or drag to resize

BsonDocument Constructor

Overload List
  NameDescription
Public methodBsonDocument()
Initializes a new instance of the BsonDocument class.
Public methodBsonDocument(Boolean)
Initializes a new instance of the BsonDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
Public methodBsonDocument(BsonElement)
Initializes a new instance of the BsonDocument class and adds one element.
Public methodBsonDocument(BsonElement[]) Obsolete.
Initializes a new instance of the BsonDocument class and adds one or more elements.
Public methodBsonDocument(Dictionary<String, Object>)
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(IDictionary)
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(IEnumerable<BsonElement>)
Initializes a new instance of the BsonDocument class and adds new elements from a list of elements.
Public methodBsonDocument(IEnumerable<KeyValuePair<String, Object>>)
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(Dictionary<String, Object>, IEnumerable<String>) Obsolete.
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(IDictionary, IEnumerable) Obsolete.
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(IDictionary<String, Object>, IEnumerable<String>) Obsolete.
Initializes a new instance of the BsonDocument class and adds new elements from a dictionary of key/value pairs.
Public methodBsonDocument(String, BsonValue)
Initializes a new instance of the BsonDocument class and creates and adds a new element.
Top
See Also