WriteConcernWith Method (Int32, OptionalNullableTimeSpan, OptionalNullableBoolean, OptionalNullableBoolean) |
Returns a new instance of WriteConcern with some values changed.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax public WriteConcern With(
int w,
Optional<Nullable<TimeSpan>> wTimeout = null,
Optional<Nullable<bool>> fsync = null,
Optional<Nullable<bool>> journal = null
)
Public Function With (
w As Integer,
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
) As WriteConcern
member With :
w : int *
?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
- 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.
Return Value
Type:
WriteConcernA WriteConcern.
See Also