DurableTimerExtension.OnRegisterTimer(TimeSpan, Bookmark) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在目前工作流程操作的註冊計時器表中新增一個計時器物件,包含指定的時間範圍與書籤資訊。
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
一個工作流程或活動可以在計時器物件過期後被動等待恢復的時刻。