Click or drag to resize

WriteConcernWith Method (Int32, 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.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public WriteConcern With(
	int w,
	Optional<TimeSpan?> wTimeout = default,
	Optional<bool?> fsync = default,
	Optional<bool?> journal = default
)

Parameters

w
Type: SystemInt32
The w value.
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