Method WithWriteConcern
WithWriteConcern(WriteConcern)
Returns a new MongoCollection instance with a different write concern setting.
public virtual MongoCollection<TDefaultDocument> WithWriteConcern(WriteConcern writeConcern)
Parameters
writeConcern
WriteConcernThe write concern.
Returns
- MongoCollection<TDefaultDocument>
A new MongoCollection instance with a different write concern setting.