Cancels a registered wait operation issued by the TBD function. Specifies the WaitHandle to be signaled when the function is successful and all callback functions have completed. If this parameter is NULL, the method returns immediately. If this method is-1, the function does not return until the event has been canceled and all associated callback functions have completed.
[Visual Basic] Public Function Unregister( _ ByVal waitObject As WaitHandle _ ) As Boolean [C#] public bool Unregister( WaitHandle waitObject ); [C++] public: bool Unregister( WaitHandle* waitObject ); [JScript] public function Unregister( waitObject : WaitHandle ) : Boolean;
True If the function succeeds; otherwise, False;
RegisteredWaitHandle Class | RegisteredWaitHandle Members | System.Threading Namespace