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 接口。
构造函数
CompensatableTransactionScopeActivity() |
已过时.
初始化 CompensatableTransactionScopeActivity 类的新实例。 |
CompensatableTransactionScopeActivity(String) |
已过时.
使用活动名初始化 CompensatableTransactionScopeActivity 类的新实例。 |
属性
方法
事件
Canceling |
已过时.
在取消活动执行时发生。 (继承自 Activity) |
Closed |
已过时.
在 Activity 完成执行时发生。 (继承自 Activity) |
Compensating |
已过时.
在 Activity 上运行补偿方法时发生。 (继承自 Activity) |
Executing |
已过时.
在运行 Activity 时发生。 (继承自 Activity) |
Faulting |
已过时.
在实例的运行期间引发异常时发生。 (继承自 Activity) |
StatusChanged |
已过时.
在运行中的 ActivityExecutionStatus 的 Activity 更改时发生。 (继承自 Activity) |
显式接口实现
IActivityEventListener<ActivityExecutionStatusChangedEventArgs>.OnEvent(Object, ActivityExecutionStatusChangedEventArgs) |
已过时.
定义发生订阅事件时的处理过程。 |
ICompensatableActivity.Compensate(ActivityExecutionContext) |
已过时.
由工作流运行时调用,用于补偿处于 Closed 状态的活动。 活动的 Succeeded 属性的值必须为 ExecutionResult,这样才能对其进行补偿。 |
IComponent.Disposed |
已过时.
表示处理组件的“Disposed”事件的方法。 (继承自 DependencyObject) |