Partager via


CorrelationToken.SubscribeForCorrelationTokenInitializedEvent Méthode

Définition

Abonne la CorrelationToken à l'événement initialisé.

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))

Paramètres

activity
Activity

Nom de Activity possédant le jeton de corrélation.

dataChangeListener
IActivityEventListener<CorrelationTokenEventArgs>

CorrelationTokenEventArgs observant les modifications des données d'événement.

Exceptions

activity ou dataChangeListener sont des références Null (Nothing en Visual Basic).

S’applique à