Table of Contents

Method With

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

With(int, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)

Returns a new instance of WriteConcern with some values changed.

public WriteConcern With(int w, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)

Parameters

w int

The w value.

wTimeout Optional<TimeSpan?>

The wtimeout value.

fsync Optional<bool?>

The fsync value.

journal Optional<bool?>

The journal value.

Returns

WriteConcern

A WriteConcern.

With(string, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)

Returns a new instance of WriteConcern with some values changed.

public WriteConcern With(string mode, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)

Parameters

mode string

The mode.

wTimeout Optional<TimeSpan?>

The wtimeout value.

fsync Optional<bool?>

The fsync value.

journal Optional<bool?>

The journal value.

Returns

WriteConcern

A WriteConcern.

With(Optional<WValue>, Optional<TimeSpan?>, Optional<bool?>, Optional<bool?>)

Returns a new instance of WriteConcern with some values changed.

public WriteConcern With(Optional<WriteConcern.WValue> w = default, Optional<TimeSpan?> wTimeout = default, Optional<bool?> fsync = default, Optional<bool?> journal = default)

Parameters

w Optional<WriteConcern.WValue>

The w value.

wTimeout Optional<TimeSpan?>

The wtimeout value.

fsync Optional<bool?>

The fsync value.

journal Optional<bool?>

The journal value.

Returns

WriteConcern

A WriteConcern.