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