Share via


DispatcherQueueTimer.Interval Property

Definition

Gets and sets the interval for the timer.

public:
 property TimeSpan Interval { TimeSpan get(); void set(TimeSpan value); };
TimeSpan Interval();

void Interval(TimeSpan value);
public System.TimeSpan Interval { get; set; }
var timeSpan = dispatcherQueueTimer.interval;
dispatcherQueueTimer.interval = timeSpan;
Public Property Interval As TimeSpan

Property Value

The amount of time before the timer ticks.

Remarks

If you change the interval while the timer is running, the timer will restart with the new value.

Applies to