AfterRemoveFile Event
Signals the completion of a file removal operation.
Syntax
public event OnAfterRemoveFileHandler OnAfterRemoveFile; public delegate void OnAfterRemoveFileHandler(object sender, FtpserverAfterRemoveFileEventArgs e); public class FtpserverAfterRemoveFileEventArgs : EventArgs { public long ConnectionID { get; } public string Path { get; } public int OperationStatus { get; set; } }
Public Event OnAfterRemoveFile As OnAfterRemoveFileHandler Public Delegate Sub OnAfterRemoveFileHandler(sender As Object, e As FtpserverAfterRemoveFileEventArgs) Public Class FtpserverAfterRemoveFileEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property Path As String Public Property OperationStatus As Integer End Class
Remarks
The component fires this event upon completion of a file removal operation. Check the operation status, and alter it, if needed, through the OperationStatus parameter:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |