WriteConcernWith Method (OptionalWriteConcernWValue, 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.22.0+75246110ed1247226fcc7f8eb2c54ffab745693e
Syntaxpublic WriteConcern With(
	Optional<WriteConcernWValue> w = default,
	Optional<TimeSpan?> wTimeout = default,
	Optional<bool?> fsync = default,
	Optional<bool?> journal = default
)
Public Function With ( 
	Optional w As Optional(Of WriteConcernWValue) = Nothing,
	Optional wTimeout As Optional(Of TimeSpan?) = Nothing,
	Optional fsync As Optional(Of Boolean?) = Nothing,
	Optional journal As Optional(Of Boolean?) = Nothing
) As WriteConcern
member With : 
        ?w : Optional<WriteConcernWValue> * 
        ?wTimeout : Optional<Nullable<TimeSpan>> * 
        ?fsync : Optional<Nullable<bool>> * 
        ?journal : Optional<Nullable<bool>> 
(* Defaults:
        let _w = defaultArg w new Optional<WriteConcernWValue>()
        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.DriverOptionalWriteConcernWValue
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