Interface ITimer
A timer.
public interface ITimer : IDisposable
- Inherited Members
Methods
Change(TimeSpan, TimeSpan)
Changes the start time and the interval between method invocations for a timer.
bool Change(TimeSpan dueTime, TimeSpan period)
Parameters
dueTime
TimeSpanThe amount of time to delay before the callback parameter invokes its methods. Specify InfiniteTimeSpan to prevent the timer from starting. Specify Zero to start the timer immediately.
period
TimeSpanThe time interval between invocations of the methods referenced by callback. Specify InfiniteTimeSpan to disable periodic signaling.
Returns
Exceptions
- ObjectDisposedException
The timer has already been disposed.
- ArgumentOutOfRangeException
The
dueTime
orperiod
parameter, in milliseconds, is less than -1.- NotSupportedException
The
dueTime
orperiod
parameter, in milliseconds, is greater than 4294967294.