TransactionScope Constructor

TransactionScope Constructor ()


Initializes a new instance of the TransactionScope class.

Namespace:   System.Transactions
Assembly:  System.Transactions (in System.Transactions.dll)

public TransactionScope()

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
Return to top
© 2015 Microsoft