TransactionScopeAsyncFlowOption TransactionScopeAsyncFlowOption TransactionScopeAsyncFlowOption TransactionScopeAsyncFlowOption Enum

定义

指示是否为 TransactionScope 启用跨线程连续任务的事务流。Specifies whether transaction flow across thread continuations is enabled for TransactionScope.

public enum class TransactionScopeAsyncFlowOption
public enum TransactionScopeAsyncFlowOption
type TransactionScopeAsyncFlowOption = 
Public Enum TransactionScopeAsyncFlowOption
继承
TransactionScopeAsyncFlowOptionTransactionScopeAsyncFlowOptionTransactionScopeAsyncFlowOptionTransactionScopeAsyncFlowOption

字段

Enabled Enabled Enabled Enabled 1

指定跨线程连续任务的事务流已启用。Specifies that transaction flow across thread continuations is enabled.

Suppress Suppress Suppress Suppress 0

指定跨线程连续任务的事务流已禁用。Specifies that transaction flow across thread continuations is suppressed. 如果 TransactionScope 构造函数中未指定 TransactionScopeAsyncFlowOption,则这是默认设置。This is the default setting if no TransactionScopeAsyncFlowOption is specified in the TransactionScope constructor.

注解

TransactionScopeAsyncFlowOptionTransactionScope.TransactionScopeTransactionScopeAsyncFlowOption采用参数的重载中配置。TransactionScopeAsyncFlowOption is configured in the TransactionScope.TransactionScope overloads that take a TransactionScopeAsyncFlowOption parameter. Suppress如果未TransactionScopeAsyncFlowOption指定, 则为默认设置。Suppress is the default setting if no TransactionScopeAsyncFlowOption is specified.

适用于