Click or drag to resize

WriteConcern Constructor (OptionalWriteConcernWValue, OptionalNullableTimeSpan, OptionalNullableBoolean, OptionalNullableBoolean)

Initializes a new instance of the WriteConcern class.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public WriteConcern(
	Optional<WriteConcernWValue> w = null,
	Optional<Nullable<TimeSpan>> wTimeout = null,
	Optional<Nullable<bool>> fsync = null,
	Optional<Nullable<bool>> journal = null
)

Parameters

w (Optional)
Type: MongoDB.DriverOptionalWriteConcernWValue
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.
See Also