Table of Contents

Constructor Timer

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Timer()

Initializes a new instance of the Timer class.

public Timer()

Timer(TimeSpan)

Initializes a new instance of the Timer class with the specified tick interval.

public Timer(TimeSpan interval)

Parameters

interval TimeSpan

The time duration before the Tick event is raised relative to the last occurrence of the Tick event.

Timer(int)

Initializes a new instance of the Timer class with the specified tick interval (in milliseconds).

public Timer(int interval)

Parameters

interval int

The time duration before the Tick event is raised.

Timer(TimeSpan, EventHandler)

Initializes a new instance of the Timer class with the specified tick interval and Tick handler.

public Timer(TimeSpan interval, EventHandler tickHandler)

Parameters

interval TimeSpan

The time duration before the Tick event is raised relative to the last occurrence of the Tick event.

tickHandler EventHandler

An EventHandler which is called when the specified timer interval has elapsed and the timer is enabled.

Timer(int, EventHandler)

Initializes a new instance of the Timer class with the specified tick interval (in milliseconds) and Tick handler.

public Timer(int interval, EventHandler tickHandler)

Parameters

interval int

The time duration before the Tick event is raised.

tickHandler EventHandler

An EventHandler which is called when the specified timer interval has elapsed and the timer is enabled.

Timer(int, Action)

Initializes a new instance of the Timer class with a specified interval (in milliseconds) and action to execute on each tick.

public Timer(int interval, Action tickAction)

Parameters

interval int

The time interval, in milliseconds, between each tick of the timer. Must be a positive integer.

tickAction Action

The action to execute on each tick of the timer. Cannot be null.