Table of Contents

Method SetLimit

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

SetLimit(int)

Sets the limit on the number of documents to be returned.

public virtual MongoCursor<TDocument> SetLimit(int limit)

Parameters

limit int

The limit on the number of documents to be returned.

Returns

MongoCursor<TDocument>

The cursor (so you can chain method calls to it).