Resume execution of an asynchronous task.
object.TaskResume ( TaskId )
- An optional integer value that specifies the unique identifier
associated with a background task.
A value of zero is returned if the operation was successful,
otherwise a non-zero error code is returned which indicates the cause
of the failure.
The TaskResume method resumes execution of the background
worker thread that was previously suspended using the TaskSuspend
method. If the TaskId parameter is omitted, the method will
resume execution of the last background task that was started.