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.50 中的
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 。 活动必须具有其ExecutionResult属性的值Succeeded才能得到补偿。 |
| IComponent.Disposed |
已过时.
表示处理组件的 Disposed 事件的方法。 (继承自 DependencyObject) |