語言

DurableTimerExtension.OnRegisterTimer(TimeSpan, Bookmark) 方法

定義

在目前工作流程操作的註冊計時器表中新增一個計時器物件,包含指定的時間範圍與書籤資訊。

protected:
 override void OnRegisterTimer(TimeSpan timeout, System::Activities::Bookmark ^ bookmark);
protected override void OnRegisterTimer(TimeSpan timeout, System.Activities.Bookmark bookmark);
override this.OnRegisterTimer : TimeSpan * System.Activities.Bookmark -> unit
Protected Overrides Sub OnRegisterTimer (timeout As TimeSpan, bookmark As Bookmark)

參數

timeout
TimeSpan

一個時間跨度物件,會在工作流程操作中加入計時器註冊表的項目中,連同回調資訊一併加入。

bookmark
Bookmark

一個工作流程或活動可以在計時器物件過期後被動等待恢復的時刻。

適用於