CompensatableTransactionScopeActivity.TransactionOptions 属性

定义

获取与此实例关联的 WorkflowTransactionOptionsGets the WorkflowTransactionOptions associated with this instance.

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

与此实例关联的 WorkflowTransactionOptionsThe WorkflowTransactionOptions associated with this instance.

示例

下面的示例演示如何访问 TransactionOptions 属性。The following example demonstrates accessing the TransactionOptions property. 此示例摘自“补偿 SDK”示例。This example is from the Compensation SDK sample. 有关详细信息,请参阅补偿示例For more information, see Compensation Sample.

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

适用于

另请参阅