CorrelationToken.SubscribeForCorrelationTokenInitializedEvent 方法

定义

CorrelationToken 订阅已初始化事件。

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

参数

activity
Activity

拥有相关标记的 Activity 的名称。

dataChangeListener
IActivityEventListener<CorrelationTokenEventArgs>

侦听事件数据的更改的 CorrelationTokenEventArgs

例外

activitydataChangeListener 为空引用(在 Visual Basic 中为 Nothing)。

适用于