IAsyncResult.AsyncWaitHandle Property

Task.IAsyncResult.AsyncWaitHandle Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

WaitHandle IAsyncResult.AsyncWaitHandle { get; }

Property Value

Type: System.Threading.WaitHandle
A WaitHandle that can be used to wait for the task to complete.

Implements

IAsyncResult.AsyncWaitHandle

ExceptionCondition
ObjectDisposedException

The Task has been disposed.

Using the wait functionality provided by Wait should be preferred over using AsyncWaitHandle for similar functionality. For more information, see [79cb522b-9c93-46ed-b23a-c06908f3a374] and [7add905b-ff60-4353-af79-5089038d9a08].

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft