Partilhar via


CorrelationToken.SubscribeForCorrelationTokenInitializedEvent Método

Definição

Assina o CorrelationToken no evento inicializado.

public:
 void SubscribeForCorrelationTokenInitializedEvent(System::Workflow::ComponentModel::Activity ^ activity, System::Workflow::ComponentModel::IActivityEventListener<System::Workflow::Runtime::CorrelationTokenEventArgs ^> ^ dataChangeListener);
public void SubscribeForCorrelationTokenInitializedEvent (System.Workflow.ComponentModel.Activity activity, System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.Runtime.CorrelationTokenEventArgs> dataChangeListener);
member this.SubscribeForCorrelationTokenInitializedEvent : System.Workflow.ComponentModel.Activity * System.Workflow.ComponentModel.IActivityEventListener<System.Workflow.Runtime.CorrelationTokenEventArgs> -> unit
Public Sub SubscribeForCorrelationTokenInitializedEvent (activity As Activity, dataChangeListener As IActivityEventListener(Of CorrelationTokenEventArgs))

Parâmetros

activity
Activity

O nome da Activity que possui o token de correlação.

dataChangeListener
IActivityEventListener<CorrelationTokenEventArgs>

O CorrelationTokenEventArgs que está escutando em busca de uma alteração nos dados de evento.

Exceções

activity ou dataChangeListener são referências nulas (Nothing no Visual Basic).

Aplica-se a