语言

TimerEventSubscription 构造函数

定义

初始化 TimerEventSubscription 类的新实例。

重载

名称 说明
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

一个 DateTime 表示与此订阅关联的计时器应过期的时间(UTC)。

注解

下表显示了 TimerEventSubscription实例的初始属性值。

财产 价值
QueueName 系统Guid提供的SubscriptionId字符串表示形式。
SubscriptionId 系统提供的 Guid。
WorkflowInstanceId 由 . 指定的 工作流实例的 < a0/> 的工作流实例。
ExpiresAt 指定 DateTime 者 expiresAt。

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

表示 DateTime 此订阅的计时器应过期的时间(UTC)。

注解

下表显示了 TimerEventSubscription实例的初始属性值。

财产 价值
QueueName 指定的Guid字符串表示形式timerId。
SubscriptionId 指定 Guid 者 timerId。
WorkflowInstanceId 由 . 指定的 工作流实例的 < a0/> 的工作流实例。
ExpiresAt 指定 DateTime 者 expiresAt。

QueueName 由此构造函数初始化为字符串表示形式 timerId 。

适用于