Click or drag to resize

WriteConcern Constructor (Optional<WriteConcern.WValue>, Optional<Nullable<TimeSpan>>, Optional<Nullable<Boolean>>, Optional<Nullable<Boolean>>)

Initializes a new instance of the WriteConcern class.

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

Parameters

w (Optional)
Type: MongoDB.Driver.Optional<WriteConcern.WValue>
The w value.
wTimeout (Optional)
Type: MongoDB.Driver.Optional<Nullable<TimeSpan>>
The wtimeout value.
fsync (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The fsync value .
journal (Optional)
Type: MongoDB.Driver.Optional<Nullable<Boolean>>
The journal value.
See Also