HandleExternalEventActivity.IEventActivity.Subscribe 方法

定义

创建 HandleExternalEventActivity 活动对事件的订阅。

 virtual void System.Workflow.Activities.IEventActivity.Subscribe(System::Workflow::ComponentModel::ActivityExecutionContext ^ parentContext, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::ComponentModel::QueueEventArgs ^> ^ parentEventHandler) = System::Workflow::Activities::IEventActivity::Subscribe;
void IEventActivity.Subscribe (System.Workflow.ComponentModel.ActivityExecutionContext parentContext, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> parentEventHandler);
abstract member System.Workflow.Activities.IEventActivity.Subscribe : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> -> unit
override this.System.Workflow.Activities.IEventActivity.Subscribe : System.Workflow.ComponentModel.ActivityExecutionContext * System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.ComponentModel.QueueEventArgs> -> unit
Sub Subscribe (parentContext As ActivityExecutionContext, parentEventHandler As IActivityEventListener(Of QueueEventArgs)) Implements IEventActivity.Subscribe

参数

parentContext
ActivityExecutionContext

表示 ActivityExecutionContext 的执行环境的 Activity

parentEventHandler
IActivityEventListener<QueueEventArgs>

父事件的 EventHandler

实现

适用于

另请参阅