edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

ExFTPConnectionCancelTask(IAsyncResult) Method

Cancels the given asynchronous task.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public bool CancelTask(
	IAsyncResult task
)

Parameters

task  IAsyncResult
Task to be cancelled. Pass in the object returned by a connection's BeginXYZ() method.

Return Value

Boolean

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