Mono Class Library: System.Threading.WaitHandle Overview | MembersSystem.Threading.WaitHandle.Dispose Method |
Releases the unmanaged resources used by the System.Threading.WaitHandle and optionally releases the managed resources. [Edit]
|
- explicitDisposing
- true to release both managed and unmanaged resources; false to release only unmanaged resources. [Edit]
Operation
This method releases all unmanaged resources held by the current instance. When the explicitDisposing parameter is true, this method releases all resources held by any managed objects referenced by the current instance. This method invokes the Dispose() method of each referenced object.Note to Inheritors
Override this method to dispose of resources allocated by types derived from System.Threading.WaitHandle. When overriding Dispose(bool), be careful not to reference objects that have been previously disposed in an earlier call to Dispose or Close . Dispose can be called multiple times by other objects.Usage
This method is called by the public WaitHandle.Dispose(bool) method and the object.Finalize method. Dispose() invokes this method with the explicitDisposing parameter set to true. object.Finalize invokes Dispose with explicitDisposing set to false . [Edit]
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0