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

TransactionScope Constructor

Initializes a new instance of the TransactionScope class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method TransactionScope() Initializes a new instance of the TransactionScope class.
Public method TransactionScope(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.
Public method TransactionScope(TransactionScopeOption) Initializes a new instance of the TransactionScope class with the specified requirements.
Public method TransactionScope(Transaction, TimeSpan) Initializes a new instance of the TransactionScope class with the specified timeout value, and sets the specified transaction as the ambient transaction, so that transactional work done inside the scope uses this transaction.
Public method TransactionScope(TransactionScopeOption, TimeSpan) Initializes a new instance of the TransactionScope class with the specified timeout value and requirements.
Public method TransactionScope(TransactionScopeOption, TransactionOptions) Initializes a new instance of the TransactionScope class with the specified requirements.
Public method TransactionScope(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 transaction.
Public method TransactionScope(TransactionScopeOption, TransactionOptions, EnterpriseServicesInteropOption) Initializes a new instance of the TransactionScope class with the specified scope and COM+ interoperability requirements, and transaction options.
Top

Community Additions

ADD
Show:
© 2015 Microsoft