Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.18 KB

threadpooltimer_createtimer_1268637445.md

File metadata and controls

38 lines (25 loc) · 1.18 KB
-api-id -api-type
M:Windows.System.Threading.ThreadPoolTimer.CreateTimer(Windows.System.Threading.TimerElapsedHandler,Windows.Foundation.TimeSpan)
winrt method

Windows.System.Threading.ThreadPoolTimer.CreateTimer

-description

Creates a single-use timer.

-parameters

-param handler

The method to call when the timer expires.

-param delay

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.

-returns

An instance of a single-use timer.

-remarks

-examples

-see-also

CreateTimer(TimerElapsedHandler, TimeSpan, TimerDestroyedHandler)