System.Timers.Timer.Start Method

Starts raising the Timer.Elapsed event by setting Timer.Enabled to true.

Syntax

public void Start ()

Remarks

If Timer.Enabled is set to true and Timer.AutoReset is set to false, the System.Timers.Timer raises the Timer.Elapsed event only once, the first time the interval elapses. When Timer.Enabled is true and Timer.AutoReset is true, the System.Timers.Timer continues to raise the Timer.Elapsed event on the specified interval.

You can also start timing by setting Timer.Enabled to true.

Note:

If Timer.AutoReset is false, the Timer.Start method must be called in order to start the count again.

Requirements

Namespace: System.Timers
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0