Redigera

Dela via


TimerEventSubscriptionCollection.Remove Method

Definition

Removes the specified TimerEventSubscription from the timer queue.

Overloads

Remove(Guid)

Removes the TimerEventSubscription that has the specified subscription id from the timer queue.

Remove(TimerEventSubscription)

Removes the TimerEventSubscription from the timer queue.

Remove(Guid)

Removes the TimerEventSubscription that has the specified subscription id from the timer queue.

public:
 void Remove(Guid timerSubscriptionId);
public void Remove (Guid timerSubscriptionId);
member this.Remove : Guid -> unit
Public Sub Remove (timerSubscriptionId As Guid)

Parameters

timerSubscriptionId
Guid

The Guid of the TimerEventSubscription to remove.

Remarks

Removes the TimerEventSubscription with the specified subscription id 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.

Applies to

Remove(TimerEventSubscription)

Removes the TimerEventSubscription from the timer queue.

public:
 void Remove(System::Workflow::Runtime::TimerEventSubscription ^ item);
public void Remove (System.Workflow.Runtime.TimerEventSubscription item);
member this.Remove : System.Workflow.Runtime.TimerEventSubscription -> unit
Public Sub Remove (item As TimerEventSubscription)

Parameters

item
TimerEventSubscription

The TimerEventSubscription to remove from the timer queue.

Exceptions

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

Remarks

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.

Applies to