Table of Contents

Constructor WriteConcern

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

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

Initializes a new instance of the WriteConcern class.

public WriteConcern(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.

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

Initializes a new instance of the WriteConcern class.

public WriteConcern(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.

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

Initializes a new instance of the WriteConcern class.

public WriteConcern(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.