Skip to main content
Version: 3.5

Timer

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Implements a timer that raises an event at user-defined intervals.

public class Timer : Component

Constructors​

Instance memberTimer()​

Initializes a new instance of the Timer class.

Instance memberTimer(container)​

Initializes a new instance of the Timer class together with the specified container.

NameTypeDescription
containerIContainerA IContainer that represents the container for the timer.

Properties​

Instance memberEnabled​

Boolean: Returns or sets whether the timer is running. (Default: False)

Instance memberInterval​

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)

Instance memberTag​

Object: Returns or sets an arbitrary string representing some type of user state. (Default: null)

Methods​

Instance memberRestart()​

Resets the timer.

Instance memberStart()​

Starts the timer.

Instance memberStop()​

Stops the timer.

Events​

Instance memberTick​

EventHandler Fired when the specified timer interval has elapsed and the timer is enabled.

Implements​

NameDescription
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.