Timer
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Implements a timer that raises an event at user-defined intervals.
- C#
- VB.NET
public class Timer : Component
Public Class Timer
Inherits Component
Constructors
Timer()
Initializes a new instance of the Timer class.
Timer(container)
Initializes a new instance of the Timer class together with the specified container.
| Name | Type | Description |
|---|---|---|
| container | IContainer | A IContainer that represents the container for the timer. |
Properties
Enabled
Boolean: Returns or sets whether the timer is running. (Default: False)
Interval
Int32: Returns or sets the time, in milliseconds, before the Tick event is raised relative to the last occurrence of the Tick event. (Default: 1000)
Tag
Object: Returns or sets an arbitrary string representing some type of user state. (Default: null)
Methods
Restart()
Resets the timer.
Start()
Starts the timer.
Stop()
Stops the timer.
Events
Tick
EventHandler Fired when the specified timer interval has elapsed and the timer is enabled.
Implements
| Name | Description |
|---|---|
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |