Table of Contents

Method WithWriteConcern

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

WithWriteConcern(WriteConcern)

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

public virtual MongoCollection<TDefaultDocument> WithWriteConcern(WriteConcern writeConcern)

Parameters

writeConcern WriteConcern

The write concern.

Returns

MongoCollection<TDefaultDocument>

A new MongoCollection instance with a different write concern setting.