This documentation is archived and is not being maintained.

TimerEventSubscription Class

Represents a subscription to a timer event.

Namespace: System.Workflow.Runtime
Assembly: System.Workflow.Runtime (in system.workflow.runtime.dll)

public ref class TimerEventSubscription
/** @attribute SerializableAttribute() */ 
public class TimerEventSubscription
public class TimerEventSubscription
Not applicable.

TimerEventSubscription objects are added to the timer queue associated with a workflow instance in order to send a message to a specific WorkflowQueue at a specified time. When the time specified by ExpiresAt is reached, the workflow runtime engine sends a message containing the SubscriptionId to the WorkflowQueue specified by QueueName. The timer queue associated with a workflow instance is contained in the TimerCollectionProperty. You can examine TimerCollectionProperty and the WorkflowQueueInfo objects returned by WorkflowInstance.GetWorkflowQueueData to determine which activities are waiting on a specific TimerEventSubscription. The DelayActivity and the SqlWorkflowPersistenceService both use timer event subscriptions to provide part of their functionality.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0