Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TransactionScope Constructor (TransactionScopeOption, TransactionOptions, TransactionScopeAsyncFlowOption)

[Supported in the .NET Framework 4.5.1 and later versions]

Initializes a new instance of the TransactionScope class with the specified requirements and asynchronous flow option.

Namespace:  System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)
'Declaration
Public Sub New ( _
	scopeOption As TransactionScopeOption, _
	transactionOptions As TransactionOptions, _
	asyncFlowOption As TransactionScopeAsyncFlowOption _
)

Parameters

scopeOption
Type: System.Transactions.TransactionScopeOption

An instance of the TransactionScopeOption enumeration that describes the transaction requirements associated with this transaction scope.

transactionOptions
Type: System.Transactions.TransactionOptions

A TransactionOptions structure that describes the transaction options to use if a new transaction is created. If an existing transaction is used, the timeout value in this parameter applies to the transaction scope. If that time expires before the scope is disposed, the transaction is aborted.

asyncFlowOption
Type: System.Transactions.TransactionScopeAsyncFlowOption

An instance of the TransactionScopeAsyncFlowOption enumeration that describes whether the ambient transaction associated with the transaction scope will flow across thread continuations when using Task or async/await .NET async programming patterns.

.NET Framework

Supported in: 4.5.1
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.