System.Threading.TimerCallback Delegate

public delegate void TimerCallback(object state);

Base Types

Object
  Delegate
    TimerCallback

This type implements ICloneable.

Assembly

mscorlib

Library

BCL

Summary

Defines the shape of methods that are called by an instance of the Timer class.

Parameters

state
A Object containing application-specific information relevant to the methods invoked by instances of this delegate, or null .

Description

A TimerCallback 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 the Timer 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.]

See Also

System.Threading Namespace