Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

  Name Description
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(TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] Initializes a new instance of the TransactionScope class with the specified asynchronous flow option.
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(Transaction, TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] 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, 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(TransactionScopeOption, TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] Initializes a new instance of the TransactionScope class with the specified requirements and asynchronous flow option.
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(Transaction, TimeSpan, TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] 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, TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] Initializes a new instance of the TransactionScope class with the specified timeout value, requirements, and asynchronous flow option.
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.
Public method TransactionScope(TransactionScopeOption, TransactionOptions, TransactionScopeAsyncFlowOption) [Supported in the .NET Framework 4.5.1 and later versions] Initializes a new instance of the TransactionScope class with the specified requirements and asynchronous flow option.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.