Waits for the Task to complete execution.
Public Sub Wait ( _ cancellationToken As CancellationToken _ )
public void Wait( CancellationToken cancellationToken )
public: void Wait( CancellationToken cancellationToken )
member Wait : cancellationToken:CancellationToken -> unit
The cancellationToken was canceled.
The Task has been disposed.
The Task was canceled -or- an exception was thrown during the execution of the Task. If the task was canceled, the AggregateException contains an OperationCanceledException in its InnerExceptions collection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2