FileOperationResult Event
Reports the result of a file transfer operation.
Syntax
public event OnFileOperationResultHandler OnFileOperationResult; public delegate void OnFileOperationResultHandler(object sender, FtpclientFileOperationResultEventArgs e); public class FtpclientFileOperationResultEventArgs : EventArgs { public int Operation { get; } public string RemotePath { get; } public string LocalPath { get; } public int ErrorCode { get; } public string Comment { get; } public bool Cancel { get; set; } }
Public Event OnFileOperationResult As OnFileOperationResultHandler Public Delegate Sub OnFileOperationResultHandler(sender As Object, e As FtpclientFileOperationResultEventArgs) Public Class FtpclientFileOperationResultEventArgs Inherits EventArgs Public ReadOnly Property Operation As Integer Public ReadOnly Property RemotePath As String Public ReadOnly Property LocalPath As String Public ReadOnly Property ErrorCode As Integer Public ReadOnly Property Comment As String Public Property Cancel As Boolean End Class
Remarks
The component fires this event from DownloadFiles and UploadFiles to notify the application of the completion of a file operation.
ErrorCode and Comment provide the details of the operation. Use the Cancel parameter to terminate the whole multi-file operation if needed.
Operations:
cffoDownloadFile | 0 | Download file |
cffoUploadFile | 1 | Upload file |
cffoDeleteFile | 2 | Delete file |
cffoMakeDir | 3 | Make directory |