TransactionScope Constructor

TransactionScope Constructor

 

Initializes a new instance of the TransactionScope class.

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

NameDescription
System_CAPS_pubmethodTransactionScope()

Initializes a new instance of the TransactionScope class.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(TransactionScopeOption)

Initializes a new instance of the TransactionScope class with the specified requirements.

System_CAPS_pubmethodTransactionScope(TransactionScopeOption, TimeSpan)

Initializes a new instance of the TransactionScope class with the specified timeout value and requirements.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(TransactionScopeOption, TransactionOptions)

Initializes a new instance of the TransactionScope class with the specified requirements.

System_CAPS_pubmethodTransactionScope(TransactionScopeOption, TransactionOptions, EnterpriseServicesInteropOption)

Initializes a new instance of the TransactionScope class with the specified scope and COM+ interoperability requirements, and transaction options.

System_CAPS_pubmethodTransactionScope(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.

System_CAPS_pubmethodTransactionScope(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.

Return to top
Show:
© 2016 Microsoft