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
dueTimeTimeSpanThe 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.
periodTimeSpanThe 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
dueTimeorperiodparameter, in milliseconds, is less than -1.- NotSupportedException
The
dueTimeorperiodparameter, in milliseconds, is greater than 4294967294.