TimerElapsedHandler Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a method that is called when a timer created with CreateTimer or CreatePeriodicTimer expires.
public delegate void TimerElapsedHandler(ThreadPoolTimer ^ timer);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4205749863, 64491, 18891, 173, 178, 113, 24, 76, 85, 110, 67)]
class TimerElapsedHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(4205749863, 64491, 18891, 173, 178, 113, 24, 76, 85, 110, 67)]
public delegate void TimerElapsedHandler(ThreadPoolTimer timer);
Public Delegate Sub TimerElapsedHandler(timer As ThreadPoolTimer)
Parameters
- timer
- ThreadPoolTimer
The timer to associate with this method. When this timer expires, the method is called.
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
When a timer is canceled, pending TimerElapsedHandler delegates are also canceled. TimerElapsedHandler delegates that are already running are allowed to finish.