Timer Class
Creates a timer object, which allows you to set properties and start and stop the timer.
public class Timer : ModelItem
Public Instance Constructors
Constructor | Description |
Timer() | Initializes a new instance of the Timer class. |
Timer(IModelItemOwner) | Initializes a new instance of the Timer class. |
Timer(IModelItemOwner, string) | Initializes a new instance of the Timer class. |
Public Instance Methods
Method | Description |
Start | Starts the timer. |
Stop | Stops the timer. |
ToString | Converts this object to a human-readable string. |
Public Instance Methods
Method | Description |
Dispose | Releases all the resources used by the Timer class. |
Public Instance Properties
Property | Description |
AutoRepeat | Gets a value that indicates whether the timer runs repeatedly, or whether it runs one time. |
Enabled | Gets a value that indicates whether the timer is enabled. Enabling the timer starts it; disabling the timer stops it. |
Interval | Gets or sets the interval between ticks, in milliseconds. |
TimeSpanInterval | Gets or sets the interval between ticks, as a TimeSpan value. |
Public Instance Events
Event | Description |
Tick | Raised for a timer tick. |
Requirements
Reference: Microsoft.MediaCenter.UI
Namespace: Microsoft.MediaCenter.UI
Assembly: Microsoft.MediaCenter.UI.dll
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also