Share via


DispatcherQueueTimer.IsRepeating Property

Definition

Gets or sets a value that indicates whether the timer is repeating.

public:
 property bool IsRepeating { bool get(); void set(bool value); };
bool IsRepeating();

void IsRepeating(bool value);
public bool IsRepeating { get; set; }
var boolean = dispatcherQueueTimer.isRepeating;
dispatcherQueueTimer.isRepeating = boolean;
Public Property IsRepeating As Boolean

Property Value

Boolean

bool

true to indicate that the timer fires every DispatcherQueueTimer.Interval; false to indicate that the timer fires once, after DispatcherQueueTimer.Interval elapses. The default is true.

Remarks

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

Applies to