Table of Contents

Class SortByDocument

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

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

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

Constructors

SortByDocument()

Initializes a new instance of the SortByDocument class.

SortByDocument(BsonElement)

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

SortByDocument(params BsonElement[])

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

SortByDocument(bool)

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

SortByDocument(Dictionary<string, object>)

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

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

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

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

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

SortByDocument(IEnumerable<BsonElement>)

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

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

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

SortByDocument(IDictionary)

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

SortByDocument(IDictionary, IEnumerable)

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

SortByDocument(string, BsonValue)

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