TimerEventSubscriptionCollection.Remove Method (TimerEventSubscription)
Removes the TimerEventSubscription from the timer queue.
Namespace: System.Workflow.Runtime
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Parameters
- item
- Type: System.Workflow.Runtime.TimerEventSubscription
The TimerEventSubscription to remove from the timer queue.
| Exception | Condition |
|---|---|
| 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.