Timer.Start Method

Starts raising the Elapsed event by setting Enabled to true.

Namespace:  System.Timers
Assembly:  System (in System.dll)

public void Start()

ExceptionCondition
ArgumentOutOfRangeException

The Timer is created with an interval equal to or greater than Int32.MaxValue + 1, or set to an interval less than zero.

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

You can also start timing by setting Enabled to true.

NoteNote

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft