This topic has not yet been rated - Rate this topic

TimerEventSubscriptionCollection.Remove Method (TimerEventSubscription)

Removes the TimerEventSubscription from the timer queue.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)
public void Remove(
	TimerEventSubscription item
)

Parameters

item
Type: System.Workflow.Runtime.TimerEventSubscription

The TimerEventSubscription to remove from the timer queue.

ExceptionCondition
ArgumentNullException

item is a null reference (Nothing in Visual Basic).

Removes the TimerEventSubscription from the timer queue. Subscriptions in the queue are positioned based on their TimerEventSubscription.ExpiresAt values; those with smaller values are positioned in front of those with larger values. If the subscription removed was the subscription at the beginning of the queue, WorkflowSchedulerService.Cancel is called to cancel the timer event associated with this subscription and WorkflowSchedulerService.Schedule(WaitCallback, Guid, DateTime, Guid) is called to schedule a timer event for the subscription that is now at the beginning of the queue. Remove(Guid) is thread safe.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.