LogOffUser(String,Boolean) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The LogOffUser() method logs off the specified user from the session. This overload of the method includes a flag that determines whether to display a confirmation dialog after the user attempts to log off.
'Declaration
Public Overloads Sub LogOffUser( _
ByVal userId As String, _
ByVal askForConfirmation As Boolean _
)
public void LogOffUser(
string userId,
bool askForConfirmation
)
Parameters
- userId
- Required. Holds the ID of the user who is to be logged off.
- askForConfirmation
- Required. Holds a flag that, if set to true, causes a confirmation dialog to display, asking the user if they are sure they want to log off. If this flag is set to false, no confirmation dialog displays.