|
| .NET Framework Class Library |
| Task..::.IAsyncResult..::.AsyncWaitHandle Property |
| Task Class See Also Send Feedback |
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
| Exception | Condition |
|---|---|
| System..::.ObjectDisposedException | The Task has been disposed. |