XafApplication.LoggingOff Event
Occurs when a user clicks the Log Off button or the ASP.NET Web Forms session ends.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
public event EventHandler<LoggingOffEventArgs> LoggingOff
#Event Data
The LoggingOff event's data class is LoggingOffEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Can |
Indicates whether the log off process can be canceled. |
Cancel |
Gets or sets a value indicating whether the event should be canceled.
Inherited from Cancel |
Logon |
Specifies the Security System‘s logon parameters. |
#Remarks
Handle this event to execute custom code before a user has logged off. If the log off process has been initiated by a user (via the Log Off LogoffController.LogoffAction), the LoggingOffEventArgs.CanCancel property returns true, and you can cancel the process by setting the handler’s Cancel parameter to true.
Note
When the Logging