Table of Contents

Method SetMaxScan

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

SetMaxScan(int)

Sets the maximum number of documents to scan.

[Obsolete("MaxScan was deprecated in server version 4.0.")]
public virtual MongoCursor<TDocument> SetMaxScan(int maxScan)

Parameters

maxScan int

The maximum number of documents to scan.

Returns

MongoCursor<TDocument>

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