Windows Dev Center

WaitHandle.Close Method

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

Show:
© 2015 Microsoft