Table of Contents

Method SetOption

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

SetOption(string, BsonValue)

Sets a cursor option.

public virtual MongoCursor<TDocument> SetOption(string name, BsonValue value)

Parameters

name string

The name of the option.

value BsonValue

The value of the option.

Returns

MongoCursor<TDocument>

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