CompositeActivity 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
Activity 的派生,它是包含其他活动的所有活动的基类。 CompositeActivity 负责管理其子活动的执行。
public ref class CompositeActivity : System::Workflow::ComponentModel::Activity
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityValidator))]
[System.Workflow.ComponentModel.Serialization.ContentProperty("Activities")]
public class CompositeActivity : System.Workflow.ComponentModel.Activity
[System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityCodeGenerator))]
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityValidator))]
[System.Workflow.ComponentModel.Serialization.ContentProperty("Activities")]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class CompositeActivity : System.Workflow.ComponentModel.Activity
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityValidator))>]
[<System.Workflow.ComponentModel.Serialization.ContentProperty("Activities")>]
type CompositeActivity = class
inherit Activity
[<System.Workflow.ComponentModel.Compiler.ActivityCodeGenerator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityCodeGenerator))>]
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.ComponentModel.Compiler.CompositeActivityValidator))>]
[<System.Workflow.ComponentModel.Serialization.ContentProperty("Activities")>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type CompositeActivity = class
inherit Activity
Public Class CompositeActivity
Inherits Activity
- 继承
- 派生
- 属性
注解
注意
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
使用CompositeActivity类方法和类上Activity定义的事件来管理其子活动的ActivityExecutionContext执行。 例如,计划使用
工作流运行时对执行强制实施某些约束CompositeActivity,其中最基本的是CompositeActivity,如果任何子活动仍处于Executing、Canceling或Compensating处于Faulting状态,则活动无法移动到Closed状态。
构造函数
| 名称 | 说明 |
|---|---|
| CompositeActivity() |
已过时.
初始化 CompositeActivity 类的新实例。 |
| CompositeActivity(IEnumerable<Activity>) |
已过时.
从Object中初始化类的新实例,该实例CompositeActivity实现IEnumerable具有类型的Activity接口。 |
| CompositeActivity(String) |
已过时.
初始化类的新实例 CompositeActivity 以及该活动的名称。 |
属性
方法
活动
| 名称 | 说明 |
|---|---|
| Canceling |
已过时.
取消活动执行时发生。 (继承自 Activity) |
| Closed |
已过时.
当 Activity 完成执行时发生。 (继承自 Activity) |
| Compensating |
已过时.
在 Activity上运行补偿方法时发生。 (继承自 Activity) |
| Executing |
已过时.
运行 Activity 时发生。 (继承自 Activity) |
| Faulting |
已过时.
在实例运行期间引发异常时发生。 (继承自 Activity) |
| StatusChanged |
已过时.
当正在运行的 ActivityExecutionStatus 的 Activity 发生更改时发生。 (继承自 Activity) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IComponent.Disposed |
已过时.
表示处理组件的 Disposed 事件的方法。 (继承自 DependencyObject) |