CoreSessionOptions Constructor |
Namespace:
MongoDB.Driver.Core.Bindings
Assembly:
MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax public CoreSessionOptions(
bool isCausallyConsistent = false,
bool isImplicit = false,
TransactionOptions defaultTransactionOptions = null,
bool isSnapshot = false
)
Public Sub New (
Optional isCausallyConsistent As Boolean = false,
Optional isImplicit As Boolean = false,
Optional defaultTransactionOptions As TransactionOptions = Nothing,
Optional isSnapshot As Boolean = false
)
new :
?isCausallyConsistent : bool *
?isImplicit : bool *
?defaultTransactionOptions : TransactionOptions *
?isSnapshot : bool
(* Defaults:
let _isCausallyConsistent = defaultArg isCausallyConsistent false
let _isImplicit = defaultArg isImplicit false
let _defaultTransactionOptions = defaultArg defaultTransactionOptions null
let _isSnapshot = defaultArg isSnapshot false
*)
-> CoreSessionOptions
Parameters
- isCausallyConsistent (Optional)
- Type: SystemBoolean
if set to true this session is causally consistent] - isImplicit (Optional)
- Type: SystemBoolean
if set to true this session is an implicit session. - defaultTransactionOptions (Optional)
- Type: MongoDB.DriverTransactionOptions
The default transaction options. - isSnapshot (Optional)
- Type: SystemBoolean
if set to true this session is a snapshot session.
See Also