TransactionOptions Constructor |
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax public TransactionOptions(
Optional<ReadConcern> readConcern = null,
Optional<ReadPreference> readPreference = null,
Optional<WriteConcern> writeConcern = null,
Optional<Nullable<TimeSpan>> maxCommitTime = null
)
Public Sub New (
Optional readConcern As Optional(Of ReadConcern) = Nothing,
Optional readPreference As Optional(Of ReadPreference) = Nothing,
Optional writeConcern As Optional(Of WriteConcern) = Nothing,
Optional maxCommitTime As Optional(Of Nullable(Of TimeSpan)) = Nothing
)
new :
?readConcern : Optional<ReadConcern> *
?readPreference : Optional<ReadPreference> *
?writeConcern : Optional<WriteConcern> *
?maxCommitTime : Optional<Nullable<TimeSpan>>
(* Defaults:
let _readConcern = defaultArg readConcern null
let _readPreference = defaultArg readPreference null
let _writeConcern = defaultArg writeConcern null
let _maxCommitTime = defaultArg maxCommitTime null
*)
-> TransactionOptions
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