Waits for the System.Threading.Tasks.Task to complete execution.
For more information and an example, see How to: Wait on One or More Tasks to Complete.