public bool CancelTask(
IAsyncResult task
)Public Function CancelTask (
task As IAsyncResult
) As Booleanpublic:
bool CancelTask(
IAsyncResult^ task
)member CancelTask :
task : IAsyncResult -> bool 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.