TransactionDecorator Constructor (transactionToUse, scopeTimeout, interopOption)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 TransactionDecorator Constructor (transactionToUse, scopeTimeout, interopOption)
Patterns-In-Action! ApplicationTransactionsTransactionDecoratorTransactionDecorator(Transaction, TimeSpan, EnterpriseServicesInteropOption)
Initializes a new instance of the TransactionScope class with the specified timeout value and COM+ interoperability requirements, and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transDoFactory.
Declaration Syntax
C# Visual Basic
public TransactionDecorator(
	Transaction transactionToUse,
	TimeSpan scopeTimeout,
	EnterpriseServicesInteropOption interopOption
)
Public Sub New ( _
	transactionToUse As Transaction, _
	scopeTimeout As TimeSpan, _
	interopOption As EnterpriseServicesInteropOption _
)
Parameters
transactionToUse (Transaction)
Represents a transaction.
scopeTimeout (TimeSpan)
The TimeSpan after which the transaction scope times out and aborts the transaction.
interopOption (EnterpriseServicesInteropOption)
An instance of the EnterpriseServicesInteropOption enumeration that describes how the associated transaction interacts with COM+ transactions.

Assembly: Transactions (Module: Transactions) Version: 1.0.0.0 (1.0.0.0)