Click or drag to resize

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
)

Parameters

limit
Type: SystemInt64
The limit.

Type Parameters

TInput
The type of the input documents.

Return Value

Type: PipelineStageDefinitionTInput, TInput
The stage.
See Also