Error Event
Fires to report an error condition.
Syntax
public event OnErrorHandler OnError; public delegate void OnErrorHandler(object sender, SamlwriterErrorEventArgs e); public class SamlwriterErrorEventArgs : EventArgs { public int ErrorCode { get; } public string Description { get; } }
Public Event OnError As OnErrorHandler Public Delegate Sub OnErrorHandler(sender As Object, e As SamlwriterErrorEventArgs) Public Class SamlwriterErrorEventArgs Inherits EventArgs Public ReadOnly Property ErrorCode As Integer Public ReadOnly Property Description As String End Class
Remarks
Subscribe to this event to be notified about any error conditions occurring during the component's work. ErrorCode and Description provide the details of the error.