Table of Contents

Method SetOptions

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

SetOptions(BsonDocument)

Sets multiple cursor options. See also the individual Set{Option} methods, which are easier to use.

public virtual MongoCursor<TDocument> SetOptions(BsonDocument options)

Parameters

options BsonDocument

The options.

Returns

MongoCursor<TDocument>

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