Name

RegisteredWaitHandle

Synopsis

ThreadPool.RegisterWaitForSingleObject() returns a RegisteredWaitHandle. To cancel a registered wait (either a new one or one that continuously executes), use Unregister().

public sealed class RegisteredWaitHandle : MarshalByRefObject {
// Public Instance Methods
   public method bool Unregister(WaitHandle waitObject);  
// Protected Instance Methods
   protected override method void Finalize();                    // overrides object
}

Hierarchy

System.ObjectSystem.MarshalByRefObjectRegisteredWaitHandle

Returned By

ThreadPool.{RegisterWaitForSingleObject(), UnsafeRegisterWaitForSingleObject()}

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.