Language

TimerEventSubscriptionCollection.Remove メソッド

定義

指定した TimerEventSubscription をタイマー キューから削除します。

オーバーロード

名前 説明
Remove(Guid)

指定したサブスクリプション ID を持つ TimerEventSubscription をタイマー キューから削除します。

Remove(TimerEventSubscription)

タイマー キューから TimerEventSubscription を削除します。

Remove(Guid)

指定したサブスクリプション ID を持つ TimerEventSubscription をタイマー キューから削除します。

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

パラメーター

timerSubscriptionId
Guid

削除するGuidのTimerEventSubscription。

注釈

指定したサブスクリプション ID の TimerEventSubscription をタイマー キューから削除します。 キュー内のサブスクリプションは、 TimerEventSubscription.ExpiresAt 値に基づいて配置されます。値が小さいサブスクリプションは、値が大きいサブスクリプションの前に配置されます。 削除されたサブスクリプションがキューの先頭にあるサブスクリプションであった場合は、このサブスクリプションに関連付けられているタイマー イベントを取り消すために WorkflowSchedulerService.Cancel が呼び出され、 WorkflowSchedulerService.Schedule(WaitCallback, Guid, DateTime, Guid) が呼び出されて、現在キューの先頭にあるサブスクリプションのタイマー イベントがスケジュールされます。 Remove(Guid) はスレッド セーフです。

適用対象

Remove(TimerEventSubscription)

タイマー キューから TimerEventSubscription を削除します。

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)

パラメーター

item
TimerEventSubscription

タイマー キューから削除する TimerEventSubscription 。

例外

item は null 参照です (Visual Basic では Nothing)。

注釈

タイマー キューから TimerEventSubscription を削除します。 キュー内のサブスクリプションは、 TimerEventSubscription.ExpiresAt 値に基づいて配置されます。値が小さいサブスクリプションは、値が大きいサブスクリプションの前に配置されます。 削除されたサブスクリプションがキューの先頭にあるサブスクリプションであった場合は、このサブスクリプションに関連付けられているタイマー イベントを取り消すために WorkflowSchedulerService.Cancel が呼び出され、 WorkflowSchedulerService.Schedule(WaitCallback, Guid, DateTime, Guid) が呼び出されて、現在キューの先頭にあるサブスクリプションのタイマー イベントがスケジュールされます。 Remove(Guid) はスレッド セーフです。

適用対象