Method Limit

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

Limit(long)

Creates a $limit stage.

public static PipelineStageDefinition<TInput, TInput> Limit<TInput>(long limit)

Parameters

limit long

The limit.

Returns

PipelineStageDefinition<TInput, TInput>

The stage.

Type Parameters

TInput

The type of the input documents.