Back to Devexpress

XafApplication.LogonFailed Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-1b469cf4.md

latest2.4 KB
Original Source

XafApplication.LogonFailed Event

Occurs when the logon fails.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public event EventHandler<LogonFailedEventArgs> LogonFailed
vb
Public Event LogonFailed As EventHandler(Of LogonFailedEventArgs)

Event Data

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

PropertyDescription
ExceptionReturns the exception that was raised when logging on.
HandledGets 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.
LogonParametersReturns 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

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace