Skip to main content
.NET Framework 4.5.2+

XafApplication.LogonFailed Event

Occurs when the logon fails.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.1.dll

NuGet Package: DevExpress.ExpressApp


public event EventHandler<LogonFailedEventArgs> LogonFailed

Event Data

The LogonFailed event's data class is LogonFailedEventArgs. The following properties provide information specific to this event:

Property Description
Exception Returns the exception that was raised when logging on.
Handled Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
LogonParameters Returns the current logon parameters.


Handle this event to process the exception that failed the logon. This exception is available via the handler’s LogonFailedEventArgs.Exception parameter. You can also access the current logon parameters via the handler’s LogonFailedEventArgs.LogonParameters parameter.

To avoid throwing the exception, set the handler’s Handled parameter to true.

See Also