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.