C# Class MongoDB.Driver.Builders.SortByBuilder

Inheritance: BuilderBase, IMongoSortBy
Afficher le fichier Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Méthodes publiques

Méthode Description
Ascending ( ) : SortByBuilder

Adds keys to be sorted by in ascending order.

Descending ( ) : SortByBuilder

Adds keys to be sorted by in descending order.

SortByBuilder ( ) : System

Initializes a new instance of the SortByBuider class.

ToBsonDocument ( ) : BsonDocument

Returns the result of the builder as a BsonDocument.

Méthodes protégées

Méthode Description
Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void

Serializes the result of the builder to a BsonWriter.

Method Details

Ascending() public méthode

Adds keys to be sorted by in ascending order.
public Ascending ( ) : SortByBuilder
Résultat SortByBuilder

Descending() public méthode

Adds keys to be sorted by in descending order.
public Descending ( ) : SortByBuilder
Résultat SortByBuilder

Serialize() protected méthode

Serializes the result of the builder to a BsonWriter.
protected Serialize ( BsonWriter bsonWriter, Type nominalType, IBsonSerializationOptions options ) : void
bsonWriter BsonWriter The writer.
nominalType System.Type The nominal type.
options IBsonSerializationOptions The serialization options.
Résultat void

SortByBuilder() public méthode

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

ToBsonDocument() public méthode

Returns the result of the builder as a BsonDocument.
public ToBsonDocument ( ) : BsonDocument
Résultat BsonDocument