TimerElapsedHandler TimerElapsedHandler TimerElapsedHandler TimerElapsedHandler Delegate


Represents a method that is called when a timer created with CreateTimer or CreatePeriodicTimer expires.

public : delegate void TimerElapsedHandler(ThreadPoolTimer timer)
struct TimerElapsedHandler : winrt::Windows::Foundation::IUnknown
   TimerElapsedHandler(std::nulptr_t = nullptr) noexcept {}
   template <typename L> TimerElapsedHandler(L lambda);
   template <typename F> TimerElapsedHandler(F* function);
   template <typename O, typename M> TimerElapsedHandler(O* object, M method);
   void operator()(winrt::Windows::System::Threading::TimerElapsedHandler const& sender) const;
public delegate void TimerElapsedHandler(ThreadPoolTimer timer)
Public Delegate TimerElapsedHandler(timer As ThreadPoolTimer)
ThreadPoolTimer ThreadPoolTimer

The timer to associate with this method. When this timer expires, the method is called.

Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


When a timer is canceled, pending TimerElapsedHandler delegates are also canceled. TimerElapsedHandler delegates that are already running are allowed to finish.