WriteConcern Constructor (Optional<WriteConcern.WValue>, Optional<Nullable<TimeSpan>>, Optional<Nullable<Boolean>>, Optional<Nullable<Boolean>>) |
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
Syntaxpublic WriteConcern(
Optional<WriteConcern.WValue> w = default,
Optional<TimeSpan?> wTimeout = default,
Optional<bool?> fsync = default,
Optional<bool?> journal = default
)
Public Sub New (
Optional w As Optional(Of WriteConcern.WValue) = Nothing,
Optional wTimeout As Optional(Of TimeSpan?) = Nothing,
Optional fsync As Optional(Of Boolean?) = Nothing,
Optional journal As Optional(Of Boolean?) = Nothing
)
new :
?w : Optional<WriteConcern.WValue> *
?wTimeout : Optional<Nullable<TimeSpan>> *
?fsync : Optional<Nullable<bool>> *
?journal : Optional<Nullable<bool>>
(* Defaults:
let _w = defaultArg w new Optional<WriteConcern.WValue>()
let _wTimeout = defaultArg wTimeout new Optional<Nullable<TimeSpan>>()
let _fsync = defaultArg fsync new Optional<Nullable<bool>>()
let _journal = defaultArg journal new Optional<Nullable<bool>>()
*)
-> WriteConcern
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