Click or drag to resize

TransactionOptions Constructor

Initializes a new instance of the TransactionOptions class.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
public TransactionOptions(
	Optional<ReadConcern> readConcern = default,
	Optional<ReadPreference> readPreference = default,
	Optional<WriteConcern> writeConcern = default,
	Optional<TimeSpan?> maxCommitTime = default
)

Parameters

readConcern (Optional)
Type: MongoDB.DriverOptionalReadConcern
The read concern.
readPreference (Optional)
Type: MongoDB.DriverOptionalReadPreference
The read preference.
writeConcern (Optional)
Type: MongoDB.DriverOptionalWriteConcern
The write concern.
maxCommitTime (Optional)
Type: MongoDB.DriverOptionalNullableTimeSpan
The max commit time.
See Also