DispatcherQueue.CreateTimer Method

Definition

Creates a DispatcherQueueTimer on the DispatcherQueue to execute a task periodically after a time interval has elapsed.

C#
public DispatcherQueueTimer CreateTimer();

Returns

An DispatcherQueueTimer that can queue tasks on a timed basis to the current DispatcherQueue.

Remarks

By default, a repeating timer is created. To make it non-repeating, set IsRepeating to false.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6