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.50 中的 Deprecated Types。

TimerEventSubscription 对象将添加到与工作流实例关联的计时器队列中,以便在特定时间向特定 WorkflowQueue 消息发送消息。 达到指定的ExpiresAt时间时,工作流运行时引擎将发送一条消息,其中包含SubscriptionIdWorkflowQueue指定的消息QueueName。 与工作流实例关联的计时器队列包含在 < a0/> 中 。 可以检查 TimerCollectionPropertyWorkflowQueueInfo 返回 WorkflowInstance.GetWorkflowQueueData 的对象以确定哪些活动正在等待特定 TimerEventSubscription活动。 这DelayActivitySqlWorkflowPersistenceService两者都使用计时器事件订阅来提供部分功能。

构造函数

名称 说明
TimerEventSubscription()
已过时.

初始化 TimerEventSubscription 类的新实例。

TimerEventSubscription(Guid, DateTime)
已过时.

使用指定的TimerEventSubscription工作流实例和指定的过期时间Guid初始化类的新实例DateTime

TimerEventSubscription(Guid, Guid, DateTime)
已过时.

使用指定的订阅 ID、TimerEventSubscription指定的工作流实例和指定的过期时间Guid初始化类的新实例DateTime

属性

名称 说明
ExpiresAt
已过时.

获取与此订阅关联的计时器的预期过期时间。

QueueName
已过时.

表示计时器订阅过期时将消息发送到的名称WorkflowQueueWorkflowRuntime

SubscriptionId
已过时.

表示计时器事件的唯一标识符。

WorkflowInstanceId
已过时.

与计时器订阅关联的工作流的标识符。

方法

名称 说明
Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)

适用于