Table of Contents

Method SetMaxTime

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

SetMaxTime(TimeSpan)

Sets the maximum time the server should spend on this query.

public virtual MongoCursor<TDocument> SetMaxTime(TimeSpan maxTime)

Parameters

maxTime TimeSpan

The max time.

Returns

MongoCursor<TDocument>

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