This topic has not yet been rated - Rate this topic

WaitHandle.Close Method

April 12, 2014

When overridden in a derived class, releases all resources held by the current WaitHandle.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)
public virtual void Close()

This method is the public version of the IDisposable.Dispose method and is implemented to support the IDisposable interface.

This method releases any unmanaged resources held by the current instance. This method can, but is not required to, suppress finalization during garbage collection by calling the GC.SuppressFinalize method.

Override this method to release resources allocated in derived classes.

Use this method to release all resources held by an instance of WaitHandle. Once this method is called, references to the current instance cause undefined behavior.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.