C# Class MongoDB.Driver.GroupByDocument

Represents a BSON document that can be used where an IMongoGroupBy is expected.
Inheritance: BsonDocument, IMongoGroupBy
Afficher le fichier Open project: Qiredev/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
GroupByDocument ( ) : System

Initializes a new instance of the GroupByDocument class.

GroupByDocument ( BsonElement element ) : System

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

GroupByDocument ( IDictionary dictionary ) : System

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

GroupByDocument ( IDictionary dictionary, IEnumerable keys ) : System

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

GroupByDocument ( IEnumerable elements ) : System

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

GroupByDocument ( bool allowDuplicateNames ) : System

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

GroupByDocument ( string name, BsonValue value ) : System

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

Method Details

GroupByDocument() public méthode

Initializes a new instance of the GroupByDocument class.
public GroupByDocument ( ) : System
Résultat System

GroupByDocument() public méthode

Initializes a new instance of the GroupByDocument class and adds one element.
public GroupByDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
Résultat System

GroupByDocument() public méthode

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

GroupByDocument() public méthode

Initializes a new instance of the GroupByDocument class and adds new elements from a dictionary of key/value pairs.
public GroupByDocument ( IDictionary dictionary, IEnumerable keys ) : System
dictionary IDictionary A dictionary to initialize the document from.
keys IEnumerable A list of keys to select values from the dictionary.
Résultat System

GroupByDocument() public méthode

Initializes a new instance of the GroupByDocument class and adds new elements from a list of elements.
public GroupByDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
Résultat System

GroupByDocument() public méthode

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

GroupByDocument() public méthode

Initializes a new instance of the GroupByDocument class and creates and adds a new element.
public GroupByDocument ( 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.
Résultat System