IAsyncResult.AsyncWaitHandle Property

Task Parallel System.Threading

Gets a WaitHandle that can be used to wait for the task to complete.

Namespace:  System.Threading.Tasks
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Private ReadOnly Property AsyncWaitHandle As WaitHandle
	Implements IAsyncResult.AsyncWaitHandle
C#
WaitHandle IAsyncResult.AsyncWaitHandle { get; }

Implements

IAsyncResult..::.AsyncWaitHandle

Remarks

Using the wait functionality provided by Wait()()() should be preferred over using AsyncWaitHandle for similar functionality.

Exceptions

ExceptionCondition
System..::.ObjectDisposedException The Task has been disposed.

See Also