edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Cancels the asynchronous task with the given ID.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public bool CancelTask(
	int taskID
)
Visual Basic
Public Function CancelTask ( _
	taskID As Integer _
) As Boolean
Visual C++
public:
bool CancelTask(
	int taskID
)

Parameters

taskID
Type: System..::..Int32

Return Value

Remarks

The task will always be removed if it isn't currently executing. If the task is currently executing then it can only be cancelled if it is a file-transfer or a directory-listing.

See Also