FileError Event
Reports a file access error to the application.
Syntax
public event OnFileErrorHandler OnFileError; public delegate void OnFileErrorHandler(object sender, HttpserverFileErrorEventArgs e); public class HttpserverFileErrorEventArgs : EventArgs { public long ConnectionID { get; } public string FileName { get; } public int ErrorCode { get; } }
Public Event OnFileError As OnFileErrorHandler Public Delegate Sub OnFileErrorHandler(sender As Object, e As HttpserverFileErrorEventArgs) Public Class HttpserverFileErrorEventArgs Inherits EventArgs Public ReadOnly Property ConnectionID As Long Public ReadOnly Property FileName As String Public ReadOnly Property ErrorCode As Integer End Class
Remarks
The component uses this event to report a file access errors. FileName and ErrorCode contain the file path and the error code respectively.