TransactionScope Constructor ()
.NET Framework (current version)
Initializes a new instance of the TransactionScope class.
Assembly: System.Transactions (in System.Transactions.dll)
This constructor creates a new transaction scope with the transaction scope option equal to Required. This means that a transaction is required by the new scope and the ambient transaction is used if one already exists. Otherwise, it creates a new transaction before entering the scope.
.NET Framework
Available since 2.0
Available since 2.0
TransactionScope Overload
TransactionScope Class
System.Transactions Namespace
Implementing An Implicit Transaction Using Transaction Scope
Show: