Table of Contents

Method SetOption

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

SetOption(string, BsonValue)

Sets a cursor option.

public virtual MongoCursor SetOption(string name, BsonValue value)

Parameters

name string

The name of the option.

value BsonValue

The value of the option.

Returns

MongoCursor

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