ManualResetEventSlim.Dispose Method

Releases all resources used by the current instance of the ManualResetEventSlim class.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

public void Dispose()



Call Dispose when you are finished using the ManualResetEventSlim. The Dispose method leaves the ManualResetEventSlim in an unusable state. After calling Dispose, you must release all references to the ManualResetEventSlim so the garbage collector can reclaim the memory that the ManualResetEventSlim was occupying.

For more information, see [A17B0066-71C2-4BA4-9822-8E19332FC213] and [eb4e1af0-3b48-4fbc-ad4e-fc2f64138bf9].


Always call Dispose before you release your last reference to the ManualResetEventSlim. Otherwise, the resources it is using will not be freed until the garbage collector calls the ManualResetEventSlim object's Finalize method.

Windows Phone OS

Supported in: 8.1, 8.0

© 2015 Microsoft