Timer Programming Architecture
Thecomponent uses the in the Microsoft .NET Framework.
Key Programming Elements of Server-Based Timers
The Timer component raises an event called. You can create handlers for this event to perform whatever processing needs to occur.
Some of the more important properties and methods of a Timer component include the following:
Theproperty is used to set the time span, in milliseconds, at which events should be raised. For example, an interval of 1000 will raise an event once a second.
Theproperty determines whether the timer continues raising events after the given interval elapses. If set to true, the timer continues to recount the interval and raise events. If false, it raises one event after the interval elapses and then stops.
Themethod sets the timer's property to true, which allows the timer to begin raising events. If the timer is already enabled, calling the Start method resets the timer.
Themethod sets the timer's Enabled property to false, preventing the timer from raising any more events.