WriteConcern Constructor (String, OptionalNullableTimeSpan, OptionalNullableBoolean, OptionalNullableBoolean) |
Namespace: MongoDB.DriverAssembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.3.0
Syntax public WriteConcern(
string mode,
Optional<Nullable<TimeSpan>> wTimeout = null,
Optional<Nullable<bool>> fsync = null,
Optional<Nullable<bool>> journal = null
)
Public Sub New (
mode As String,
Optional wTimeout As Optional(Of Nullable(Of TimeSpan)) = Nothing,
Optional fsync As Optional(Of Nullable(Of Boolean)) = Nothing,
Optional journal As Optional(Of Nullable(Of Boolean)) = Nothing
)
new :
mode : string *
?wTimeout : Optional<Nullable<TimeSpan>> *
?fsync : Optional<Nullable<bool>> *
?journal : Optional<Nullable<bool>>
(* Defaults:
let _wTimeout = defaultArg wTimeout null
let _fsync = defaultArg fsync null
let _journal = defaultArg journal null
*)
-> WriteConcern
Parameters
- mode
- Type: SystemString
The mode. - 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