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: property WaitHandle^ AsyncWaitHandle { virtual WaitHandle^ get() sealed = 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| 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: