Skip to main content

XafApplication.LoggingOff Event

Occurs when a user clicks the Log Off button.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v25.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
CanCancel Indicates whether the log off process can be canceled.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
LogonParameters 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.

See Also