public delegate void TimerCallback(object state);
Object
Delegate
TimerCallbackThis type implements ICloneable.
mscorlib
BCL
Defines the shape of methods that are called by an instance of the Timer class.
- state
- A Object containing application-specific information relevant to the methods invoked by instances of this delegate, or
null
.
ATimerCallback
delegate invokes its methods once after the start time elapses, and continues invoking its methods once per period until the System.Threading.Timer.Dispose(System.Threading.WaitHandle) method is called. [Note: The start time for a Timer is passed in the dueTime parameter of theTimer
constructors, and the period is passed via the period parameter. ]
[Note: For an example that demonstrates creating and using a
TimerCallback
delegate, see the Timer class.]
System.Threading Namespace