The OnTaskBegin event occurs when a background task starts.
Sub object_OnTaskBegin (
[Index As Integer],
ByVal TaskId As Variant
The OnTaskBegin event is generated when a background task
associated with an asynchronous file transfer begins running. The arguments to this
- An integer value that uniquely identifies the background task.
This event can be used in conjunction with the OnTaskEnd
event to monitor one or more background tasks that are created to
perform asynchronous file transfers. The task ID passed to this event
can be used to uniquely identify the task and corresponds to the
worker thread that has been created to manage the client session. The
application should consider the ID to be an opaque value and never
make assumptions about how an ID is assigned to a background task.