HandleExternalEventActivity 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
定义用于处理本地服务引发的事件的工作流通信活动。
public ref class HandleExternalEventActivity : System::Workflow::ComponentModel::Activity, System::Workflow::Activities::IEventActivity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^>, System::Workflow::ComponentModel::IDynamicPropertyTypeProvider
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.HandleExternalEventActivityValidator))]
public class HandleExternalEventActivity : System.Workflow.ComponentModel.Activity, System.Workflow.Activities.IEventActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs>, System.Workflow.ComponentModel.IDynamicPropertyTypeProvider
[System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.HandleExternalEventActivityValidator))]
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class HandleExternalEventActivity : System.Workflow.ComponentModel.Activity, System.Workflow.Activities.IEventActivity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs>, System.Workflow.ComponentModel.IDynamicPropertyTypeProvider
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.HandleExternalEventActivityValidator))>]
type HandleExternalEventActivity = class
inherit Activity
interface IEventActivity
interface IActivityEventListener<QueueEventArgs>
interface IDynamicPropertyTypeProvider
[<System.Workflow.ComponentModel.Compiler.ActivityValidator(typeof(System.Workflow.Activities.HandleExternalEventActivityValidator))>]
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type HandleExternalEventActivity = class
inherit Activity
interface IEventActivity
interface IActivityEventListener<QueueEventArgs>
interface IDynamicPropertyTypeProvider
Public Class HandleExternalEventActivity
Inherits Activity
Implements IActivityEventListener(Of QueueEventArgs), IDynamicPropertyTypeProvider, IEventActivity
- 继承
- 属性
- 实现
注解
注释
此材料讨论已过时的类型和命名空间。 有关详细信息,请参阅 Windows Workflow Foundation 4.50 中的
本地服务是一个类,它实现本地服务接口(带有 ExternalDataExchangeAttribute标记的接口),并将其添加到其中 ExternalDataExchangeService。
当服务使用派生自HandleExternalEventActivity的事件数据引发事件时ExternalDataExchangeService,接收ExternalDataEventArgs数据。
HandleExternalEventActivity这是一个阻止活动。
派生自 HandleExternalEventActivity 的类不应实现 IActivityEventListener<T> 接口,因为派生类无法正确执行。
构造函数
| 名称 | 说明 |
|---|---|
| HandleExternalEventActivity() |
已过时.
初始化 HandleExternalEventActivity 类的新实例。 |
| HandleExternalEventActivity(String) |
已过时.
使用活动的名称初始化 HandleExternalEventActivity 类的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| CorrelationTokenProperty |
已过时.
表示面向 DependencyProperty 属性的 CorrelationToken。 |
| EventNameProperty |
已过时.
对应于在用 ExternalDataExchangeAttribute 标记的接口中定义的事件的名称。 |
| InterfaceTypeProperty |
已过时.
对应于用 ExternalDataExchangeAttribute 标记的接口的名称。 |
| InvokedEvent |
已过时.
定义活动从本地服务接收预期事件后执行的事件委托。 |
| ParameterBindingsProperty |
已过时.
表示面向 DependencyProperty 属性的 ParameterBindings。 |
| RolesProperty |
已过时.
标识允许将消息从主机发送到此活动的有效用户角色。 两种类型的受支持角色是Active Directory和 ASP.NET。 |
属性
| 名称 | 说明 |
|---|---|
| CorrelationToken |
已过时.
获取或设置到 a . 的 CorrelationToken绑定。 |
| Description |
已过时.
获取或设置 Activity的用户定义说明。 (继承自 Activity) |
| DesignMode |
已过时.
获取一个值,该值指示此实例是处于设计模式还是运行时模式。 (继承自 DependencyObject) |
| Enabled |
已过时.
获取或设置一个值,该值指示是否为执行和验证启用此实例。 (继承自 Activity) |
| EventName |
已过时.
获取引发的事件的名称。 必须设置此属性,然后才能发生本地通信。 |
| ExecutionResult |
已过时.
获取上次运行此实例的尝试 ActivityExecutionResult。 (继承自 Activity) |
| ExecutionStatus |
已过时.
获取此实例的当前 ActivityExecutionStatus。 (继承自 Activity) |
| InterfaceType |
已过时.
获取或设置 ExternalDataExchangeAttribute 处理其事件的本地服务的特性化接口类型。 必须设置此属性,然后才能发生本地通信。 |
| IsDynamicActivity |
已过时.
获取有关活动是否在工作流实例的默认 ActivityExecutionContext 内执行的信息。 (继承自 Activity) |
| Name |
已过时.
获取或设置此实例的名称。 此名称必须符合工作流项目中使用的编程语言的变量命名约定。 (继承自 Activity) |
| ParameterBindings |
已过时.
获取参数绑定的集合。 |
| Parent |
已过时.
获取包含此 CompositeActivity的 Activity。 (继承自 Activity) |
| ParentDependencyObject |
已过时.
获取 DependencyObject 图中的父 DependencyObject。 (继承自 DependencyObject) |
| QualifiedName |
已过时.
获取活动的限定名称。 限定的活动名称在工作流实例中始终是唯一的。 (继承自 Activity) |
| Roles |
已过时.
获取或设置对工作流角色集合的引用。 |
| Site |
已过时.
获取或设置对 SiteDependencyObject 组件的引用。 (继承自 DependencyObject) |
| UserData |
已过时.
获取将自定义数据与此类实例关联的 IDictionary。 (继承自 DependencyObject) |
| WorkflowInstanceId |
已过时.
获取与实例关联的 Guid。 (继承自 Activity) |
方法
活动
| 名称 | 说明 |
|---|---|
| Canceling |
已过时.
取消活动执行时发生。 (继承自 Activity) |
| Closed |
已过时.
当 Activity 完成执行时发生。 (继承自 Activity) |
| Compensating |
已过时.
在 Activity上运行补偿方法时发生。 (继承自 Activity) |
| Executing |
已过时.
运行 Activity 时发生。 (继承自 Activity) |
| Faulting |
已过时.
在实例运行期间引发异常时发生。 (继承自 Activity) |
| Invoked |
已过时.
在收到外部事件时发生。 |
| StatusChanged |
已过时.
当正在运行的 ActivityExecutionStatus 的 Activity 发生更改时发生。 (继承自 Activity) |
显式接口实现
| 名称 | 说明 |
|---|---|
| IActivityEventListener<QueueEventArgs>.OnEvent(Object, QueueEventArgs) |
已过时.
定义订阅事件发生时的处理过程。 |
| IComponent.Disposed |
已过时.
表示处理组件的 Disposed 事件的方法。 (继承自 DependencyObject) |
| IDynamicPropertyTypeProvider.GetAccessType(IServiceProvider, String) |
已过时.
返回指定属性的访问类型。 |
| IDynamicPropertyTypeProvider.GetPropertyType(IServiceProvider, String) |
已过时.
返回指定属性的 Type。 |
| IEventActivity.QueueName |
已过时.
获取活动等待数据到达的 WorkflowQueue 的名称。 |
| IEventActivity.Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>) |
已过时.
创建活动的订阅 HandleExternalEventActivity 到事件。 |
| IEventActivity.Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>) |
已过时.
HandleExternalEventActivity取消活动订阅到事件。 |