Method SetMaxTime
SetMaxTime(TimeSpan)
Sets the maximum time the server should spend on this query.
public virtual MongoCursor<TDocument> SetMaxTime(TimeSpan maxTime)
Parameters
maxTime
TimeSpanThe max time.
Returns
- MongoCursor<TDocument>
The cursor (so you can chain method calls to it).