Error Event
Fires if an unhandled error occurs during an event.
Syntax
public event OnErrorHandler OnError; public delegate void OnErrorHandler(object sender, CbdiskErrorEventArgs e); public class CbdiskErrorEventArgs : EventArgs { public int ErrorCode { get; } public string Description { get; } }
Public Event OnError As OnErrorHandler Public Delegate Sub OnErrorHandler(sender As Object, e As CbdiskErrorEventArgs) Public Class CbdiskErrorEventArgs Inherits EventArgs Public ReadOnly Property ErrorCode As Integer Public ReadOnly Property Description As String End Class
Remarks
This event fires if an unhandled error occurs during another event. Developers can use this information to help track down unhandled errors in an application's event handlers.