Skip to main content
.NET 8.0+

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.LoggedOn Event

Occurs after an end-user has logged on.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public event EventHandler<LogonEventArgs> LoggedOn

#Event Data

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

Property Description
LogonParameters Gets the current logon parameters.

#Remarks

Handle this event to execute custom code after a logon has been performed, the SecuritySystem object is initialized, the logon parameters have been saved and user model differences are loaded.

For an example, see How to: Show Notifications to a Specific User.

Note

Exceptions that occur within the LoggedOn event handler are not handled by XafApplication automatically, because it is too late to cancel a logon when this event occurs. So, it is recommended that you wrap your handler code into try-catch blocks.

See Also