PipelineStageDefinitionBuilderSortByCountTInput, TValue Method (ExpressionFuncTInput, TValue, ExpressionTranslationOptions) |
Creates a $sortByCount stage.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.4.1
Syntax public static PipelineStageDefinition<TInput, AggregateSortByCountResult<TValue>> SortByCount<TInput, TValue>(
Expression<Func<TInput, TValue>> value,
ExpressionTranslationOptions translationOptions = null
)
Public Shared Function SortByCount(Of TInput, TValue) (
value As Expression(Of Func(Of TInput, TValue)),
Optional translationOptions As ExpressionTranslationOptions = Nothing
) As PipelineStageDefinition(Of TInput, AggregateSortByCountResult(Of TValue))
static member SortByCount :
value : Expression<Func<'TInput, 'TValue>> *
?translationOptions : ExpressionTranslationOptions
(* Defaults:
let _translationOptions = defaultArg translationOptions null
*)
-> PipelineStageDefinition<'TInput, AggregateSortByCountResult<'TValue>>
Parameters
- value
- Type: System.Linq.ExpressionsExpressionFuncTInput, TValue
The value. - translationOptions (Optional)
- Type: MongoDB.DriverExpressionTranslationOptions
The translation options.
Type Parameters
- TInput
- The type of the input documents.
- TValue
- The type of the values.
Return Value
Type:
PipelineStageDefinitionTInput,
AggregateSortByCountResultTValueThe stage.
See Also