Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XafApplication.LogonFailed Event

Occurs when the logon fails.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

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.

#Remarks

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