Click or drag to resize

TransactionOptionsWith Method

Returns a new TransactionOptions with some values changed.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.7.3+Branch.v2.7.x.Sha.2f1f2be13a23b8520cb9c2ee8439c022f9a03efe
Syntax
public TransactionOptions With(
	Optional<ReadConcern> readConcern = null,
	Optional<ReadPreference> readPreference = null,
	Optional<WriteConcern> writeConcern = null
)

Parameters

readConcern (Optional)
Type: MongoDB.DriverOptionalReadConcern
The new read concern.
readPreference (Optional)
Type: MongoDB.DriverOptionalReadPreference
The read preference.
writeConcern (Optional)
Type: MongoDB.DriverOptionalWriteConcern
The new write concern.

Return Value

Type: TransactionOptions
The new TransactionOptions.
See Also