Activity.Invoke 方法

定义

订阅 EventHandlerIActivityEventListener<T>,并调用该委托。

重载

Invoke<T>(EventHandler<T>, T)

订阅 EventHandler 并调用该委托。

Invoke<T>(IActivityEventListener<T>, T)

订阅 IActivityEventListener<T> 并调用该委托。

Invoke<T>(EventHandler<T>, T)

订阅 EventHandler 并调用该委托。

protected public:
generic <typename T>
 where T : EventArgs void Invoke(EventHandler<T> ^ handler, T e);
protected internal void Invoke<T> (EventHandler<T> handler, T e) where T : EventArgs;
member this.Invoke : EventHandler<'T (requires 'T :> EventArgs)> * 'T -> unit (requires 'T :> EventArgs)
Protected Friend Sub Invoke(Of T As EventArgs) (handler As EventHandler(Of T), e As T)

类型参数

T

指定的类型。

参数

handler
EventHandler<T>

要调用的 EventHandler

e
T

要与此事件关联的 EventArgs

适用于

Invoke<T>(IActivityEventListener<T>, T)

订阅 IActivityEventListener<T> 并调用该委托。

protected public:
generic <typename T>
 where T : EventArgs void Invoke(System::Workflow::ComponentModel::IActivityEventListener<T> ^ eventListener, T e);
protected internal void Invoke<T> (System.Workflow.ComponentModel.IActivityEventListener<T> eventListener, T e) where T : EventArgs;
member this.Invoke : System.Workflow.ComponentModel.IActivityEventListener<'T (requires 'T :> EventArgs)> * 'T -> unit (requires 'T :> EventArgs)
Protected Friend Sub Invoke(Of T As EventArgs) (eventListener As IActivityEventListener(Of T), e As T)

类型参数

T

指定的类型。

参数

e
T

要与此事件关联的 EventArgs

适用于