IActivityEventListener<T> 介面

定義

警告

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

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

C#
public interface IActivityEventListener<T> where T : EventArgs
C#
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IActivityEventListener<T> where T : EventArgs

類型參數

T

事件引數的型別。

衍生
屬性

備註

備註

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

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

方法

OnEvent(Object, T)

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

適用於

產品 版本 (已過時)
.NET Framework 3.0, 3.5, 4.0 (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8)