Condividi tramite


ReceiveActivity.IEventActivity.Subscribe Metodo

Definizione

Crea la sottoscrizione dell'attività ReceiveActivity a un evento.

 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

Parametri

parentContext
ActivityExecutionContext

Elemento ActivityExecutionContext che rappresenta l'ambiente di esecuzione dell’attività ReceiveActivity.

parentEventHandler
IActivityEventListener<QueueEventArgs>

Oggetto EventHandler che gestisce l'evento. Questo gestore eventi è di proprietà dell'attività padre.

Implementazioni

Si applica a