Constructor Timer
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
TimeSpanThe 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
Timer(TimeSpan, EventHandler)
public Timer(TimeSpan interval, EventHandler tickHandler)
Parameters
interval
TimeSpanThe time duration before the Tick event is raised relative to the last occurrence of the Tick event.
tickHandler
EventHandlerAn 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
intThe time duration before the Tick event is raised.
tickHandler
EventHandlerAn EventHandler which is called when the specified timer interval has elapsed and the timer is enabled.