-api-id | -api-type |
---|---|
M:Windows.System.Threading.ThreadPoolTimer.CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan) |
winrt method |
Creates a single-use timer.
The method to call when the timer expires.
The amount of time until the timer expires.
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.
An instance of a single-use timer.
CreateTimer(TimerElapsedHandler, TimeSpan, TimerDestroyedHandler)