TransactionOptionsWith Method |
Returns a new TransactionOptions with some values changed.
Namespace:
MongoDB.Driver
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.8.0+cc573f3e1f48f39162b4b680e921a623e127e8fa
Syntax public TransactionOptions With(
Optional<ReadConcern> readConcern = null,
Optional<ReadPreference> readPreference = null,
Optional<WriteConcern> writeConcern = null
)
Public Function With (
Optional readConcern As Optional(Of ReadConcern) = Nothing,
Optional readPreference As Optional(Of ReadPreference) = Nothing,
Optional writeConcern As Optional(Of WriteConcern) = Nothing
) As TransactionOptions
member With :
?readConcern : Optional<ReadConcern> *
?readPreference : Optional<ReadPreference> *
?writeConcern : Optional<WriteConcern>
(* Defaults:
let _readConcern = defaultArg readConcern null
let _readPreference = defaultArg readPreference null
let _writeConcern = defaultArg writeConcern null
*)
-> TransactionOptions
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