Gets or sets the interval at which to raise the Timer.Elapsed event.
Double value representing the number of milliseconds for the interval.
If the interval is set after the System.Timers.Timer has started, the count is reset. For example, if you set the interval to 5 seconds and then set the Timer.Enabled property to true, the count starts at the time Timer.Enabled is set. If you reset the interval to 10 seconds when count is 3 seconds, the Timer.Elapsed event is raised for the first time 13 seconds after Timer.Enabled was set to true.
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. Timer.Enabled is then set to false.
If Timer.Enabled and Timer.AutoReset are both set to false, and the timer has previously been enabled, setting the Timer.Interval property causes the Timer.Elapsed event to be raised once, as if the Timer.Enabled property had been set to true. To set the interval without raising the event, you can temporarily set the Timer.AutoReset property to true.