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 SetMaxTime(TimeSpan maxTime)

Parameters

maxTime TimeSpan

The max time.

Returns

MongoCursor

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