TimerEventSubscription 類別

定義

警告

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

代表訂閱計時器事件。

public ref class TimerEventSubscription
[System.Serializable]
public class TimerEventSubscription
[System.Serializable]
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class TimerEventSubscription
[<System.Serializable>]
type TimerEventSubscription = class
[<System.Serializable>]
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type TimerEventSubscription = class
Public Class TimerEventSubscription
繼承
TimerEventSubscription
屬性

備註

注意

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

TimerEventSubscription 物件會加入至與工作流程執行個體關聯的計時器佇列中,以在指定時間傳送訊息至特定的 WorkflowQueue。 達到 ExpiresAt 指定的時間時,工作流程執行階段引擎會傳送包含 SubscriptionId 的訊息到 WorkflowQueue 指定的 QueueName。 與工作流程執行個體關聯的計時器佇列包含在 TimerCollectionProperty 中。 您可以檢查 TimerCollectionPropertyWorkflowQueueInfo 傳回的 WorkflowInstance.GetWorkflowQueueData 物件,以判斷哪些活動在特定的 TimerEventSubscription 上等待。 DelayActivitySqlWorkflowPersistenceService 都使用計時器事件訂閱來提供它們的部分功能。

建構函式

TimerEventSubscription()
已淘汰.

初始化 TimerEventSubscription 類別的新執行個體。

TimerEventSubscription(Guid, DateTime)
已淘汰.

使用工作流程執行個體的指定 TimerEventSubscription 和指定的到期 Guid,初始化 DateTime 類別的新執行個體。

TimerEventSubscription(Guid, Guid, DateTime)
已淘汰.

使用指定的訂閱 ID、工作流程執行個體的指定 TimerEventSubscription 與指定的到期 Guid,初始化 DateTime 類別的新執行個體

屬性

ExpiresAt
已淘汰.

取得與此訂閱關聯之計時器的預期到期時間。

QueueName
已淘汰.

表示 WorkflowQueue 的名稱,當計時器訂閱到期時 WorkflowRuntime 會傳送訊息給該佇列。

SubscriptionId
已淘汰.

代表計時器事件的唯一識別碼。

WorkflowInstanceId
已淘汰.

與計時器訂閱建立關聯的工作流程識別碼。

方法

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

適用於