C# Класс MongoDB.Driver.SortByDocument

Represents a BSON document that can be used where an IMongoSortBy is expected.
Наследование: BsonDocument, IMongoSortBy
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SortByDocument ( ) : System

Initializes a new instance of the SortByDocument class.

SortByDocument ( BsonElement element ) : System

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

SortByDocument ( IDictionary dictionary ) : System

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

SortByDocument ( IDictionary dictionary, IEnumerable keys ) : System

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

SortByDocument ( IEnumerable elements ) : System

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

SortByDocument ( bool allowDuplicateNames ) : System

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

SortByDocument ( string name, BsonValue value ) : System

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

Описание методов

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class.
public SortByDocument ( ) : System
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class and adds one element.
public SortByDocument ( BsonElement element ) : System
element BsonElement An element to add to the document.
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class and adds new elements from a dictionary of key/value pairs.
public SortByDocument ( IDictionary dictionary ) : System
dictionary IDictionary A dictionary to initialize the document from.
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class and adds new elements from a dictionary of key/value pairs.
public SortByDocument ( 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.
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class and adds new elements from a list of elements.
public SortByDocument ( IEnumerable elements ) : System
elements IEnumerable A list of elements to add to the document.
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class specifying whether duplicate element names are allowed (allowing duplicate element names is not recommended).
public SortByDocument ( bool allowDuplicateNames ) : System
allowDuplicateNames bool Whether duplicate element names are allowed.
Результат System

SortByDocument() публичный Метод

Initializes a new instance of the SortByDocument class and creates and adds a new element.
public SortByDocument ( 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.
Результат System