Click or drag to resize

FindFluentBase<TDocument, TProjection>.Limit Method

Limits the number of documents.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.21.0+5a9c3311e158910b88195f290e6d4b1b2715d2b2
Syntax
public abstract IFindFluent<TDocument, TProjection> Limit(
	Nullable<int> limit
)

Parameters

limit
Type: System.Nullable<Int32>
The limit.

Return Value

Type: IFindFluent<TDocument, TProjection>
The fluent find interface.

Implements

IFindFluent<TDocument, TProjection>.Limit(Nullable<Int32>)
Remarks
Limit of zero or null is equivalent to setting no limit.
See Also