Class CollectionOptionsDocument
Represents a BSON document that can be used where an IMongoCollectionOptions is expected.
[BsonSerializer(typeof(CollectionOptionsDocument.Serializer))]
public class CollectionOptionsDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoCollectionOptions
- Inheritance
-
CollectionOptionsDocument
- Implements
- Inherited Members
- Extension Methods
Constructors
- CollectionOptionsDocument()
Initializes a new instance of the CollectionOptionsDocument class.
- CollectionOptionsDocument(BsonElement)
Initializes a new instance of the CollectionOptionsDocument class and adds one element.
- CollectionOptionsDocument(params BsonElement[])
Initializes a new instance of the CollectionOptionsDocument class and adds one or more elements.
- CollectionOptionsDocument(bool)
Initializes a new instance of the CollectionOptionsDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
- CollectionOptionsDocument(Dictionary<string, object>)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(Dictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(IDictionary<string, object>, IEnumerable<string>)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(IEnumerable<BsonElement>)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a list of elements.
- CollectionOptionsDocument(IEnumerable<KeyValuePair<string, object>>)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(IDictionary)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(IDictionary, IEnumerable)
Initializes a new instance of the CollectionOptionsDocument class and adds new elements from a dictionary of key/value pairs.
- CollectionOptionsDocument(string, BsonValue)
Initializes a new instance of the CollectionOptionsDocument class and creates and adds a new element.