Show / Hide Table of Contents

Method timer2.Every


Overload

Starts periodic timer or changes timeout/period.

public void Every(long milliseconds, long? firstAfter = null)
Parameters
milliseconds  (long)

Time interval (period) of calling the callback function. Valid values are 0 - uint.MaxValue - 2.

firstAfter  (long?)

null (default) or time interval after which to call the callback function first time. Valid values are 0 - uint.MaxValue - 2.

Exceptions
ArgumentOutOfRangeException
ObjectDisposedException

Called timer2.Stop (unless canReuse true).

Remarks

Calls System.Threading.Timer.Change.