Windows.System.Threading.ThreadPoolTimer.CreatePeriodicTimer

December 16, 2020 ยท View on GitHub

-description

Creates a periodic timer and specifies a method to call after the periodic timer is complete. The periodic timer is complete when the timer has expired without being reactivated, and the final call to handler has finished.

-parameters

-param handler

The method to call when the timer expires.

-param period

The amount of time until the timer expires. The timer reactivates each time the period elapses, until the timer is canceled.

C++ This amount of time is specified in ticks (100-nanosecond units) using the Windows::Foundation::TimeSpan structure.

JavaScript and C# This amount of time is specified using the System.TimeSpan structure. It can be specified in ticks, or it can be specified in milliseconds, seconds, and so on.

-param destroyed

The method to call after the periodic timer is complete.

-returns

An instance of a periodic timer.

-remarks

-examples

-see-also

CreatePeriodicTimer(TimerElapsedHandler, TimeSpan)