PipelineStageDefinitionBuilderLimitTInput Method |
Creates a $limit stage.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public static PipelineStageDefinition<TInput, TInput> Limit<TInput>(
long limit
)
Public Shared Function Limit(Of TInput) (
limit As Long
) As PipelineStageDefinition(Of TInput, TInput)
static member Limit :
limit : int64 -> PipelineStageDefinition<'TInput, 'TInput>
Parameters
- limit
- Type: SystemInt64
The limit.
Type Parameters
- TInput
- The type of the input documents.
Return Value
Type:
PipelineStageDefinitionTInput,
TInputThe stage.
See Also