WriteConcern Constructor (Int32, OptionalNullableTimeSpan, OptionalNullableBoolean, OptionalNullableBoolean) |
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax public WriteConcern(
int w,
Optional<TimeSpan?> wTimeout = default,
Optional<bool?> fsync = default,
Optional<bool?> journal = default
)
Public Sub New (
w As Integer,
Optional wTimeout As Optional(Of TimeSpan?) = Nothing,
Optional fsync As Optional(Of Boolean?) = Nothing,
Optional journal As Optional(Of Boolean?) = Nothing
)
new :
w : int *
?wTimeout : Optional<Nullable<TimeSpan>> *
?fsync : Optional<Nullable<bool>> *
?journal : Optional<Nullable<bool>>
(* Defaults:
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
- 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.
See Also