Timer.Start Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Starts raising the Elapsed event by setting Enabled to true.

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

Public Sub Start

Exception Condition
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 Start is called and AutoReset is set to false, the Timer raises the Elapsed event only once, the first time the interval elapses. If Start is called and AutoReset is true, the Timer raises the Elapsed event the first time the interval elapses and continues to raise the event on the specified interval.

You can also start timing by setting Enabled to true.

System_CAPS_noteNote

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

A call to the Start method when the timer is enabled has no effect.

.NET Framework
Available since 1.1
Return to top
Show: