System.Threading.Timer.Dispose Method

Releases all resources used by the current instance of System.Threading.Timer.


public void Dispose ()


Calling Dispose allows the resources used by the System.Threading.Timer to be reallocated for other purposes. For more information about Dispose, see [<topic://cpconCleaningUpUnmanagedResources>].


Callbacks can occur after the Timer.Dispose method overload has been called, because the timer queues callbacks for execution by thread pool threads. You can use the Timer.Dispose(WaitHandle) method overload to wait until all callbacks have completed.


Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,