July 28, 2014
Gets a WaitHandle that is used to wait for an asynchronous operation to complete.
Assembly: mscorlib (in mscorlib.dll)
The return value allows the client to wait for an asynchronous operation to complete instead of polling IsCompleted until the operation concludes. The return value can be used to perform a WaitOneWaitAny, or WaitAll operation.Notes to Implementers
The object that implements IAsyncResult does not need to create the WaitHandle until the property is read. It is the choice of the IAsyncResult implementer. However, if the implementer creates , it is the responsibility of the implementer to signal the WaitHandle that will terminate the wait at the appropriate time. Once created, should be kept alive until the user calls the method that concludes the asynchronous operation. At that time the object behind can be discarded.Notes to Callers
Clients that wait for the operation to complete (instead of polling) use this property to obtain a synchronization object to wait on.