共用方式為


TimerExtension.OnRegisterTimer(TimeSpan, Bookmark) 方法

定義

RegisterTimer(TimeSpan, Bookmark) 方法呼叫。

protected:
 abstract void OnRegisterTimer(TimeSpan timeout, System::Activities::Bookmark ^ bookmark);
protected abstract void OnRegisterTimer (TimeSpan timeout, System.Activities.Bookmark bookmark);
abstract member OnRegisterTimer : TimeSpan * System.Activities.Bookmark -> unit
Protected MustOverride Sub OnRegisterTimer (timeout As TimeSpan, bookmark As Bookmark)

參數

timeout
TimeSpan

計時器的持續期間。

bookmark
Bookmark

與此計時器相關聯之書籤,會於計時器逾時的時候繼續執行。

適用於