Click or drag to resize
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.0.1
Syntax
public WriteConcern With(
	Optional<WriteConcernWValue> w = null,
	Optional<Nullable<TimeSpan>> wTimeout = null,
	Optional<Nullable<bool>> fsync = null,
	Optional<Nullable<bool>> journal = null
)

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: WriteConcern
A WriteConcern.
See Also