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

ConstructorDescription
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

MethodDescription
StartStarts the timer.
StopStops the timer.
ToStringConverts this object to a human-readable string.

Public Instance Methods

MethodDescription
DisposeReleases all the resources used by the Timer class.

Public Instance Properties

PropertyDescription
AutoRepeatGets a value that indicates whether the timer runs repeatedly, or whether it runs one time.
EnabledGets a value that indicates whether the timer is enabled. Enabling the timer starts it; disabling the timer stops it.
IntervalGets or sets the interval between ticks, in milliseconds.
TimeSpanIntervalGets or sets the interval between ticks, as a TimeSpan value.

Public Instance Events

EventDescription
TickRaised 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

Show: