SortDefinition<TDocument> Class |
Namespace: MongoDB.Driver
The SortDefinition<TDocument> type exposes the following members.
Name | Description | |
---|---|---|
![]() | SortDefinition<TDocument> | Initializes a new instance of the SortDefinition<TDocument> class |
Name | Description | |
---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry) |
Renders the sort to a BsonDocument.
|
![]() | Render(IBsonSerializer<TDocument>, IBsonSerializerRegistry, LinqProvider) |
Renders the sort to a BsonDocument.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() ![]() | Implicit(String to SortDefinition<TDocument>) |
Performs an implicit conversion from String to SortDefinition<TDocument>.
|
![]() ![]() | Implicit(BsonDocument to SortDefinition<TDocument>) |
Performs an implicit conversion from BsonDocument to SortDefinition<TDocument>.
|
Name | Description | |
---|---|---|
![]() | Ascending<TDocument>(Expression<Func<TDocument, Object>>) | Overloaded.
Combines an existing sort with an ascending field.
(Defined by SortDefinitionExtensions.) |
![]() | Ascending<TDocument>(FieldDefinition<TDocument>) | Overloaded.
Combines an existing sort with an ascending field.
(Defined by SortDefinitionExtensions.) |
![]() | Descending<TDocument>(Expression<Func<TDocument, Object>>) | Overloaded.
Combines an existing sort with an descending field.
(Defined by SortDefinitionExtensions.) |
![]() | Descending<TDocument>(FieldDefinition<TDocument>) | Overloaded.
Combines an existing sort with an descending field.
(Defined by SortDefinitionExtensions.) |
![]() | MetaTextScore<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.
(Defined by SortDefinitionExtensions.) |
![]() | ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) |
![]() | ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) |
![]() | ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |