Occurs after an end-user has logged on.
The LoggedOn event's data class is LogonEventArgs. The following properties provide information specific to this event:
|LogonParameters||Gets the current logon parameters.|
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.
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LoggedOn event.
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.