CompensatableTransactionScopeActivity 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
定義了活動的可補償版本 TransactionScopeActivity 。 無法繼承這個類別。
public ref class CompensatableTransactionScopeActivity sealed : System::Workflow::ComponentModel::CompositeActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::ActivityExecutionStatusChangedEventArgs ^>, System::Workflow::ComponentModel::ICompensatableActivity
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensatableTransactionScopeActivity), "Resources.Sequence.png")]
[System.Workflow.ComponentModel.PersistOnClose]
public sealed class CompensatableTransactionScopeActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>, System.Workflow.ComponentModel.ICompensatableActivity
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensatableTransactionScopeActivity), "Resources.Sequence.png")]
[System.Workflow.ComponentModel.PersistOnClose]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class CompensatableTransactionScopeActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>, System.Workflow.ComponentModel.ICompensatableActivity
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensatableTransactionScopeActivity), "Resources.Sequence.png")>]
[<System.Workflow.ComponentModel.PersistOnClose>]
type CompensatableTransactionScopeActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
interface ICompensatableActivity
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensatableTransactionScopeActivity), "Resources.Sequence.png")>]
[<System.Workflow.ComponentModel.PersistOnClose>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type CompensatableTransactionScopeActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
interface ICompensatableActivity
Public NotInheritable Class CompensatableTransactionScopeActivity
Inherits CompositeActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs), ICompensatableActivity
- 繼承
- 屬性
- 實作
備註
備註
此數據會討論已過時的類型和命名空間。 欲了解更多資訊,請參閱 Windows Workflow Foundation 4.5 中的
CompensatableTransactionScopeActivity 實作 ICompensatableActivity 介面。
建構函式
| 名稱 | Description |
|---|---|
| CompensatableTransactionScopeActivity() |
已淘汰.
初始化 CompensatableTransactionScopeActivity 類別的新執行個體。 |
| CompensatableTransactionScopeActivity(String) |
已淘汰.
使用活動的名稱,初始化 CompensatableTransactionScopeActivity 類別的新實例。 |
屬性
方法
事件
| 名稱 | Description |
|---|---|
| Canceling |
已淘汰.
發生於取消活動執行時。 (繼承來源 Activity) |
| Closed |
已淘汰.
發生於 Activity 已完成執行時。 (繼承來源 Activity) |
| Compensating |
已淘汰.
在 Activity上執行補償方法時發生。 (繼承來源 Activity) |
| Executing |
已淘汰.
執行 Activity 時發生。 (繼承來源 Activity) |
| Faulting |
已淘汰.
在實例執行期間引發例外狀況時發生。 (繼承來源 Activity) |
| StatusChanged |
已淘汰.
發生於執行中 ActivityExecutionStatus 的 Activity 變更時。 (繼承來源 Activity) |
明確介面實作
| 名稱 | Description |
|---|---|
| IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(Object, ActivityExecutionStatusChangedEventArgs) |
已淘汰.
定義訂閱事件發生時的處理程式。 |
| ICompensatableActivity.Compensate(ActivityExecutionContext) |
已淘汰.
由工作流程執行時呼叫,以補償處於 Closed 狀態中的活動。 該活動必須具有其財產的價值,SucceededExecutionResult才能獲得補償。 |
| IComponent.Disposed |
已淘汰.
表示處理元件 Disposed 事件的方法。 (繼承來源 DependencyObject) |