CancellationHandlerActivity 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
表示可與 CompositeActivity 相關聯的取消邏輯。 此類別無法獲得繼承。
public ref class CancellationHandlerActivity sealed : System::Workflow::ComponentModel::CompositeActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::ActivityExecutionStatusChangedEventArgs ^>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CancellationHandlerActivity), "Resources.CancellationHandler.bmp")]
[System.Workflow.ComponentModel.AlternateFlowActivity]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CancellationHandlerValidator))]
public sealed class CancellationHandlerActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CancellationHandlerActivity), "Resources.CancellationHandler.bmp")]
[System.Workflow.ComponentModel.AlternateFlowActivity]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CancellationHandlerValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class CancellationHandlerActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CancellationHandlerActivity), "Resources.CancellationHandler.bmp")>]
[<System.Workflow.ComponentModel.AlternateFlowActivity>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CancellationHandlerValidator))>]
type CancellationHandlerActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CancellationHandlerActivity), "Resources.CancellationHandler.bmp")>]
[<System.Workflow.ComponentModel.AlternateFlowActivity>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CancellationHandlerValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type CancellationHandlerActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Public NotInheritable Class CancellationHandlerActivity
Inherits CompositeActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
- 繼承
- 屬性
- 實作
備註
注意
此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型。
建構函式
CancellationHandlerActivity() |
初始化 CancellationHandlerActivity 類別的新執行個體。 |
CancellationHandlerActivity(String) |
使用活動的名稱,初始化 CancellationHandlerActivity 類別的新執行個體。 |
屬性
方法
事件
Canceling |
取消執行活動時發生。 (繼承來源 Activity) |
Closed |
發生於 Activity 已完成執行時。 (繼承來源 Activity) |
Compensating |
發生於在 Activity 上執行補償方法時。 (繼承來源 Activity) |
Executing |
發生於執行 Activity 時。 (繼承來源 Activity) |
Faulting |
在執行個體執行期間引發例外狀況時發生。 (繼承來源 Activity) |
StatusChanged |
發生於正在執行之 的 變更時。 (繼承來源 Activity) |
明確介面實作
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(Object, ActivityExecutionStatusChangedEventArgs) |
定義發生訂閱事件時的處理程序。 |
IComponent.Disposed |
表示處理元件 Disposed 事件的方法。 (繼承來源 DependencyObject) |