Click or drag to resize

SortDefinitionExtensions Class

Extension methods for SortDefinition.
Inheritance Hierarchy
System.Object
  MongoDB.Driver.SortDefinitionExtensions

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.19.1+3a2a09dd959482f665ffbb5df2557ec541597af4
Syntax
public static class SortDefinitionExtensions

The SortDefinitionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAscending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing sort with an ascending field.
Public methodStatic memberAscending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, Object>>)
Combines an existing sort with an ascending field.
Public methodStatic memberDescending<TDocument>(SortDefinition<TDocument>, FieldDefinition<TDocument>)
Combines an existing sort with an descending field.
Public methodStatic memberDescending<TDocument>(SortDefinition<TDocument>, Expression<Func<TDocument, Object>>)
Combines an existing sort with an descending field.
Public methodStatic memberMetaTextScore<TDocument>
Combines an existing sort with a descending sort on the computed relevance score of a text search. The field name should be the name of the projected relevance score field.
Top
See Also