Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TransactionScope Constructor (Transaction)

TransactionScope Constructor (Transaction)

Initializes a new instance of the TransactionScope class and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction.

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

public TransactionScope(
	Transaction transactionToUse
)

Parameters

transactionToUse
Type: System.Transactions.Transaction

The transaction to be set as the ambient transaction, so that transactional work done inside the scope uses this transaction.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft