CompensationHandlerActivity 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
指定工作流逻辑,用于撤消或补偿关联的 CompositeActivity 的成功执行。 此类不能被继承。
public ref class CompensationHandlerActivity sealed : System::Workflow::ComponentModel::CompositeActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::ActivityExecutionStatusChangedEventArgs ^>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensationHandlerActivity), "Resources.Compensation.png")]
[System.Workflow.ComponentModel.AlternateFlowActivity]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CompensationValidator))]
public sealed class CompensationHandlerActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensationHandlerActivity), "Resources.Compensation.png")]
[System.Workflow.ComponentModel.AlternateFlowActivity]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CompensationValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public sealed class CompensationHandlerActivity : System.Workflow.ComponentModel.CompositeActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensationHandlerActivity), "Resources.Compensation.png")>]
[<System.Workflow.ComponentModel.AlternateFlowActivity>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CompensationValidator))>]
type CompensationHandlerActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
[<System.Drawing.ToolboxBitmap(typeof(System.Workflow.ComponentModel.CompensationHandlerActivity), "Resources.Compensation.png")>]
[<System.Workflow.ComponentModel.AlternateFlowActivity>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.CompensationValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type CompensationHandlerActivity = class
inherit CompositeActivity
interface IActivityEventListener<ActivityExecutionStatusChangedEventArgs>
Public NotInheritable Class CompensationHandlerActivity
Inherits CompositeActivity
Implements IActivityEventListener(Of ActivityExecutionStatusChangedEventArgs)
- 继承
- 属性
- 实现
注解
备注
本材料讨论的类型和命名空间已废弃不用。 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型。
任何可以实现 Activity 的 ICompensatableActivity 定义。 CompensationHandlerActivity 的父级必须实现此接口。
构造函数
CompensationHandlerActivity() |
初始化 CompensationHandlerActivity 类的新实例。 |
CompensationHandlerActivity(String) |
使用活动名初始化 CompensationHandlerActivity 类的新实例。 |
属性
方法
事件
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) |