Table of Contents

Method WithReadConcern

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

WithReadConcern(ReadConcern)

Returns a new MongoCollection instance with a different read concern setting.

public virtual MongoCollection<TDefaultDocument> WithReadConcern(ReadConcern readConcern)

Parameters

readConcern ReadConcern

The read concern.

Returns

MongoCollection<TDefaultDocument>

A new MongoCollection instance with a different read concern setting.