Constructor WriteConcern
WriteConcern(int, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)
Initializes a new instance of the WriteConcern class.
public WriteConcern(int w, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)
Parameters
w
intThe w value.
wTimeout
Optional<TimeSpan?>The wtimeout value.
fsync
Optional<bool?>The fsync value .
journal
Optional<bool?>The journal value.
WriteConcern(string, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)
Initializes a new instance of the WriteConcern class.
public WriteConcern(string mode, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)
Parameters
mode
stringThe mode.
wTimeout
Optional<TimeSpan?>The wtimeout value.
fsync
Optional<bool?>The fsync value .
journal
Optional<bool?>The journal value.
WriteConcern(Optional<WValue>, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)
Initializes a new instance of the WriteConcern class.
public WriteConcern(Optional<WriteConcern.WValue> w = default, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)