Share via


DispatcherTimer.IsEnabled Property

Gets or sets a Boolean value that indicates whether a particular DispatcherTimer object (timer) is enabled — that is, currently running.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public bool IsEnabled { get; set; }

Property Value

true if the timer is currently running; otherwise, false. The default value is false.

Remarks

The IsEnabled property must be set to true for the Tick event to be raised.

Calling the Start method sets the IsEnabled property to true. Invoking the Stop method sets the IsEnabled property to false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

DispatcherTimer Class
DispatcherTimer Members
Microsoft.SPOT Namespace