IEventActivity 介面

定義

警告

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

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

public interface class IEventActivity
public interface IEventActivity
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public interface IEventActivity
type IEventActivity = interface
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type IEventActivity = interface
Public Interface IEventActivity
衍生
屬性

備註

注意

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

屬性

QueueName

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

方法

Subscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

建立 Activity 對事件的訂閱。

Unsubscribe(ActivityExecutionContext, IActivityEventListener<QueueEventArgs>)

取消 Activity 對事件的訂閱。

適用於