CorrelationToken.UnsubscribeFromCorrelationTokenInitializedEvent 方法

定义

从已初始化事件取消订阅 CorrelationToken

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

参数

activity
Activity

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

dataChangeListener
IActivityEventListener<CorrelationTokenEventArgs>

侦听事件数据的更改的 CorrelationTokenEventArgs

例外

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

适用于