Click or drag to resize

WriteConcernWith Method (String, OptionalNullableTimeSpan, OptionalNullableBoolean, OptionalNullableBoolean)

Returns a new instance of WriteConcern with some values changed.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntax
public WriteConcern With(
	string mode,
	Optional<TimeSpan?> wTimeout = default,
	Optional<bool?> fsync = default,
	Optional<bool?> journal = default
)

Parameters

mode
Type: SystemString
The mode.
wTimeout (Optional)
Type: MongoDB.DriverOptionalNullableTimeSpan
The wtimeout value.
fsync (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The fsync value.
journal (Optional)
Type: MongoDB.DriverOptionalNullableBoolean
The journal value.

Return Value

Type: WriteConcern
A WriteConcern.
See Also