Cancels the given asynchronous task.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
| C# |
|---|
public bool CancelTask( IAsyncResult task ) |
| Visual Basic |
|---|
Public Function CancelTask ( _ task As IAsyncResult _ ) As Boolean |
| Visual C++ |
|---|
public: bool CancelTask( IAsyncResult^ task ) |
Parameters
- task
- Type: System..::..IAsyncResult
Task to be cancelled. Pass in the object returned by a connection's BeginXYZ() method.
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.