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