CompensatableTransactionScopeActivity.TransactionOptions 属性

定义

获取与此实例关联的 WorkflowTransactionOptions

public:
 property System::Workflow::ComponentModel::WorkflowTransactionOptions ^ TransactionOptions { System::Workflow::ComponentModel::WorkflowTransactionOptions ^ get(); void set(System::Workflow::ComponentModel::WorkflowTransactionOptions ^ value); };
public System.Workflow.ComponentModel.WorkflowTransactionOptions TransactionOptions { get; set; }
member this.TransactionOptions : System.Workflow.ComponentModel.WorkflowTransactionOptions with get, set
Public Property TransactionOptions As WorkflowTransactionOptions

属性值

与此实例关联的 WorkflowTransactionOptions

示例

下面的示例演示如何访问 TransactionOptions 属性。 此示例摘自“补偿 SDK”示例。 有关详细信息,请参阅 补偿示例

this.OrderScope.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable;
Me.OrderScope.TransactionOptions.IsolationLevel = System.Transactions.IsolationLevel.Serializable

适用于

另请参阅