OnTaskBegin Event  
 

The OnTaskBegin event occurs when a background task starts.

Syntax

Sub object_OnTaskBegin ( [Index As Integer], ByVal TaskId As Variant )

Remarks

The OnTaskBegin event is generated when a background task associated with an asynchronous file transfer begins running. The arguments to this event are:

TaskId
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.

See Also

AsyncGetFile Method, AsyncPutFile Method, OnTaskEnd Event, OnTaskRun Event