Table of Contents

Method SetBatchSize

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

SetBatchSize(int)

Sets the batch size (the number of documents returned per batch).

public virtual MongoCursor<TDocument> SetBatchSize(int batchSize)

Parameters

batchSize int

The number of documents in each batch.

Returns

MongoCursor<TDocument>

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