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 SetLimit(int limit)

Parameters

limit int

The limit on the number of documents to be returned.

Returns

MongoCursor

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