C# Class MongoDB.Driver.QueryDocument

Represents a BSON document that can be used where an IMongoQuery is expected.
Inheritance: BsonDocument, IMongoQuery
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
QueryDocument ( ) : System

Initializes a new instance of the QueryDocument class.

QueryDocument ( BsonElement element ) : System

Initializes a new instance of the QueryDocument class and adds one element.

QueryDocument ( object>.Dictionary dictionary ) : System

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.

QueryDocument ( IDictionary dictionary ) : System

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.

QueryDocument ( IEnumerable elements ) : System

Initializes a new instance of the QueryDocument class and adds new elements from a list of elements.

QueryDocument ( object>.IEnumerable dictionary ) : System

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.

QueryDocument ( bool allowDuplicateNames ) : System

Initializes a new instance of the QueryDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).

QueryDocument ( string name, BsonValue value ) : System

Initializes a new instance of the QueryDocument class and creates and adds a new element.

Private Methods

Method Description
QueryDocument ( object>.Dictionary dictionary, IEnumerable keys ) : System
QueryDocument ( IDictionary dictionary, IEnumerable keys ) : System
QueryDocument ( object>.IDictionary dictionary, IEnumerable keys ) : System

Method Details

QueryDocument() public method

Initializes a new instance of the QueryDocument class.
public QueryDocument ( ) : System
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and adds one element.
public QueryDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( object>.Dictionary dictionary ) : System
dictionary object>.Dictionary A dictionary to initialize the document from.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and adds new elements from a list of elements.
public QueryDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and adds new elements from a dictionary of key/value pairs.
public QueryDocument ( object>.IEnumerable dictionary ) : System
dictionary object>.IEnumerable A dictionary to initialize the document from.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public QueryDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
return System

QueryDocument() public method

Initializes a new instance of the QueryDocument class and creates and adds a new element.
public QueryDocument ( string name, BsonValue value ) : System
name string The name of the element to add to the document.
value BsonValue The value of the element to add to the document.
return System