IEventActivity 介面

定義

警告

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

提供事件驅動活動必須從其中衍生才能夠訂閱事件的方法和屬性。

C#
public interface IEventActivity
C#
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IEventActivity
衍生
屬性

備註

備註

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

屬性

QueueName

取得 WorkflowQueue 的名稱,活動會在其上等候資料到達。

方法

Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

建立 Activity 對事件的訂閱。

Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

取消 Activity 對事件的訂閱。

適用於

產品 版本 (已過時)
.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)