語言

TimerEventSubscription 建構函式

定義

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

多載

名稱 Description
TimerEventSubscription()

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

TimerEventSubscription(Guid, DateTime)

透過使用工作流程實例的指定TimerEventSubscription值及到期Guid時間初始化該類別的新DateTime實例。

TimerEventSubscription(Guid, Guid, DateTime)

透過指定的訂閱 ID、工作流程實例的指定TimerEventSubscription值及到期時間Guid初始化該類別的新DateTime實例。

TimerEventSubscription()

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

protected:
 TimerEventSubscription();
protected TimerEventSubscription();
Protected Sub New ()

適用於

TimerEventSubscription(Guid, DateTime)

透過使用工作流程實例的指定TimerEventSubscription值及到期Guid時間初始化該類別的新DateTime實例。

public:
 TimerEventSubscription(Guid workflowInstanceId, DateTime expiresAt);
public TimerEventSubscription(Guid workflowInstanceId, DateTime expiresAt);
new System.Workflow.Runtime.TimerEventSubscription : Guid * DateTime -> System.Workflow.Runtime.TimerEventSubscription
Public Sub New (workflowInstanceId As Guid, expiresAt As DateTime)

參數

workflowInstanceId
Guid

Guid與此訂閱相關的工作流程實例。

expiresAt
DateTime

A DateTime 代表與此訂閱相關的計時器預期在世界協調時間(UTC)中到期的時間點。

備註

下表顯示了 的 TimerEventSubscription初始屬性值。

房產 價值觀
QueueName 系統提供的GuidSubscriptionId字串表示。
SubscriptionId 一個系統提供的 Guid。
WorkflowInstanceId 該工作流程實例的 , Guid 由 workflowInstanceId指定。
ExpiresAt 由 DateTimeexpiresAt指定 。

QueueName 由此建構子初始化為 的 SubscriptionId 字串表示。

適用於

TimerEventSubscription(Guid, Guid, DateTime)

透過指定的訂閱 ID、工作流程實例的指定TimerEventSubscription值及到期時間Guid初始化該類別的新DateTime實例。

public:
 TimerEventSubscription(Guid timerId, Guid workflowInstanceId, DateTime expiresAt);
public TimerEventSubscription(Guid timerId, Guid workflowInstanceId, DateTime expiresAt);
new System.Workflow.Runtime.TimerEventSubscription : Guid * Guid * DateTime -> System.Workflow.Runtime.TimerEventSubscription
Public Sub New (timerId As Guid, workflowInstanceId As Guid, expiresAt As DateTime)

參數

timerId
Guid

這是 Guid 為了訂閱。

workflowInstanceId
Guid

Guid該訂閱所依據的工作流程實例。

expiresAt
DateTime

A DateTime 代表此訂閱計時器預計到期的宇宙協調時間(UTC)時間。

備註

下表顯示了 的 TimerEventSubscription初始屬性值。

房產 價值觀
QueueName 由 Guid所指定的 的timerId字串表示。
SubscriptionId 由 GuidtimerId指定 。
WorkflowInstanceId 該工作流程實例的 , Guid 由 workflowInstanceId指定。
ExpiresAt 由 DateTimeexpiresAt指定 。

QueueName 由此建構子初始化為 的 timerId 字串表示。

適用於