Specifies a delegate to be called at a specified time.
The wait operation is performed by a thread in the thread pool.
Object
Timer
[Visual Basic] NotInheritable Public Class Timer [C#] public sealed class Timer [C++] public __gc __sealed class Timer [JScript] public class Timer
This class currently works only on Microsoft Windows 2000. An exception is thrown on other Microsoft Windows versions.
To add a timer, call the System.Threading.Timer constructor. To update a timer, call the Change method. You can specify a delegate to be executed by a worker thread from the thread pool when the timer expires.
A timer is set to the signaled state when its specified due time arrives. Any thread with a handle to the timer can use one of the wait functions to wait for the timer state to be set to signaled.
To cancel a pending timer, call the Dispose function.
Namespace: System.Threading
Assembly: mscorlib.dll