Table of Contents

Constructor TransactionOptions

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.dll

TransactionOptions(Optional<ReadConcern>, Optional<ReadPreference>, Optional<WriteConcern>, Optional<TimeSpan?>)

Initializes a new instance of the TransactionOptions class.

public TransactionOptions(Optional<ReadConcern> readConcern = default, Optional<ReadPreference> readPreference = default, Optional<WriteConcern> writeConcern = default, Optional<TimeSpan?> maxCommitTime = default)

Parameters

readConcern Optional<ReadConcern>

The read concern.

readPreference Optional<ReadPreference>

The read preference.

writeConcern Optional<WriteConcern>

The write concern.

maxCommitTime Optional<TimeSpan?>

The max commit time.