TimerExtension.RegisterTimer(TimeSpan, Bookmark) 方法

定义

使用指定的持续时间和关联的书签创建计时器。Creates a timer with the specified duration and associated.

public:
 void RegisterTimer(TimeSpan timeout, System::Activities::Bookmark ^ bookmark);
public void RegisterTimer (TimeSpan timeout, System.Activities.Bookmark bookmark);
member this.RegisterTimer : TimeSpan * System.Activities.Bookmark -> unit
Public Sub RegisterTimer (timeout As TimeSpan, bookmark As Bookmark)

参数

timeout
TimeSpan

计时器的持续时间。The duration of the timer.

bookmark
Bookmark

与计时器关联的书签(要在计时器过期时恢复)。The bookmark associated with the timer, to be resumed when the timer expires.

适用于