Table of Contents

Class GroupByDocument

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

Represents a BSON document that can be used where an IMongoGroupBy is expected.

[BsonSerializer(typeof(GroupByDocument.Serializer))]
public class GroupByDocument : BsonDocument, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDocument>, IConvertibleToBsonDocument, IEnumerable<BsonElement>, IEnumerable, IEquatable<BsonDocument>, IMongoGroupBy
Inheritance
GroupByDocument
Implements
Inherited Members
Extension Methods

Constructors

GroupByDocument()

Initializes a new instance of the GroupByDocument class.

GroupByDocument(BsonElement)

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

GroupByDocument(params BsonElement[])

Initializes a new instance of the GroupByDocument class and adds one or more elements.

GroupByDocument(bool)

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

GroupByDocument(Dictionary<string, object>)

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

GroupByDocument(Dictionary<string, object>, IEnumerable<string>)

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

GroupByDocument(IDictionary<string, object>, IEnumerable<string>)

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

GroupByDocument(IEnumerable<BsonElement>)

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

GroupByDocument(IEnumerable<KeyValuePair<string, object>>)

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

GroupByDocument(IDictionary)

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

GroupByDocument(IDictionary, IEnumerable)

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

GroupByDocument(string, BsonValue)

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