Table of Contents

Method WithWriteConcern

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

WithWriteConcern(WriteConcern)

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

public virtual MongoDatabase WithWriteConcern(WriteConcern writeConcern)

Parameters

writeConcern WriteConcern

The write concern.

Returns

MongoDatabase

A new MongoDatabase instance with a different write concern setting.