TimerElapsedHandler TimerElapsedHandler TimerElapsedHandler TimerElapsedHandler Delegate

Definition

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::nullptr_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::ThreadPoolTimer const& timer) const;
};
public delegate void TimerElapsedHandler(ThreadPoolTimer timer)
Public Delegate Sub TimerElapsedHandler(timer As ThreadPoolTimer)

Parameters

timer
ThreadPoolTimer ThreadPoolTimer

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

Attributes

Windows 10 requirements

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

Remarks

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