共用方式為


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

適用於

另請參閱