Method WithWriteConcern
WithWriteConcern(WriteConcern)
Returns a new IMongoCollection instance with a different write concern setting.
public abstract IMongoCollection<TDocument> WithWriteConcern(WriteConcern writeConcern)
Parameters
writeConcern
WriteConcernThe write concern.
Returns
- IMongoCollection<TDocument>
A new IMongoCollection instance with a different write concern setting.