Cancels a registered wait operation issued by the ThreadPool.RegisterWaitForSingleObject(WaitHandle, WaitOrTimerCallback, object, uint, bool) method.
- waitObject
The System.Threading.WaitHandle to be signaled.
![]()
true if the function succeeds; otherwise, false.
If waitObject is specified, it is signaled only if the System.Threading.RegisteredWaitHandle is successfully unregistered. If a callback method is in progress when RegisteredWaitHandle.Unregister(WaitHandle) executes, waitObject is not signaled until the callback method completes. In particular, if a callback method executes RegisteredWaitHandle.Unregister(WaitHandle), waitObject is not signaled until that callback method completes.