Task.IAsyncResult.AsyncWaitHandle Property
.NET Framework (current version)
Gets a WaitHandle that can be used to wait for the task to complete.
Assembly: mscorlib (in mscorlib.dll)
private abstract AsyncWaitHandle : WaitHandle with get private override AsyncWaitHandle : WaitHandle with get
Property Value
Type: System.Threading.WaitHandleA WaitHandle that can be used to wait for the task to complete.
Implements
IAsyncResult.AsyncWaitHandle| Exception | Condition |
|---|---|
| ObjectDisposedException | The Task has been disposed. |
Using the wait functionality provided by Task.Wait is preferable to using AsyncWaitHandle for similar functionality. For more information, see the "Waiting on Tasks" section in Task-based Asynchronous Programming and Using TPL with Other Asynchronous Patterns.
Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 5.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: