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 |
在运行中的 ActivityExecutionStatus 的 Activity 更改时发生。 (继承自 Activity) |
显式接口实现
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(Object, ActivityExecutionStatusChangedEventArgs) |
定义发生订阅事件时的处理过程。 |
IComponent.Disposed |
表示处理组件的“Disposed”事件的方法。 (继承自 DependencyObject) |