Timer.Start Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
void Start();
public void Start ();
member this.Start : unit -> unit
Public Sub Start ()
Exceptions
The Timer is created with an interval equal to or greater than Int32.MaxValue + 1, or set to an interval less than zero.
Remarks
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
.
A call to the Start method when the timer is enabled has no effect.