Timer.Dispose Method (WaitHandle)
Silverlight
Releases all resources used by the current instance of Timer and signals when the timer has been disposed of.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Parameters
- notifyObject
- Type: System.Threading.WaitHandle
The WaitHandle to be signaled when the timer has been disposed of.
| Exception | Condition |
|---|---|
| ArgumentNullException | The notifyObject parameter is null. |
Calling Dispose makes the resources that are used by the Timer eligible to be reallocated for other purposes.
When this method completes, it signals the WaitHandle specified by the notifyObject parameter. Use this overload of the Dispose method if you want to be able to block until you are certain that the timer has been disposed.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.