Table of Contents

Method WithWriteConcern

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

WithWriteConcern(WriteConcern)

Returns a new IMongoCollection instance with a different write concern setting.

IMongoCollection<TDocument> WithWriteConcern(WriteConcern writeConcern)

Parameters

writeConcern WriteConcern

The write concern.

Returns

IMongoCollection<TDocument>

A new IMongoCollection instance with a different write concern setting.