MongoServerWithWriteConcern Method |
Returns a new MongoServer instance with a different write concern setting.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax public virtual MongoServer WithWriteConcern(
WriteConcern writeConcern
)
Public Overridable Function WithWriteConcern (
writeConcern As WriteConcern
) As MongoServer
abstract WithWriteConcern :
writeConcern : WriteConcern -> MongoServer
override WithWriteConcern :
writeConcern : WriteConcern -> MongoServer
Parameters
- writeConcern
- Type: MongoDB.DriverWriteConcern
The write concern.
Return Value
Type:
MongoServerA new MongoServer instance with a different write concern setting.
See Also