共用方式為


IActivityEventListener<T> 介面

定義

警告

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

定義接聽事件的物件介面。

generic <typename T>
 where T : EventArgspublic interface class IActivityEventListener
public interface IActivityEventListener<T> where T : EventArgs
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IActivityEventListener<T> where T : EventArgs
type IActivityEventListener<'T (requires 'T :> EventArgs)> = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IActivityEventListener<'T (requires 'T :> EventArgs)> = interface
Public Interface IActivityEventListener(Of T)

類型參數

T

事件引數的型別。

衍生
屬性

備註

注意

此資料討論已被汰換的類型及命名空間。 如需詳細資訊,請參閱 Windows Workflow Foundation 4.5 中即將淘汰的類型

輸入事件引數對於這個定義是很重要的。

方法

OnEvent(Object, T)

定義發生訂閱事件時的處理程序。

適用於