UtilPowerLogOff Method
Shuts down all processes running in the logon session and then logs off the interactive user.
Namespace: DevCase.Core.IO.Devices.PowerAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
static member LogOff :
?mode : LogOffMode *
?reason : ShutdownReason *
?ignoreErrors : bool
(* Defaults:
let _mode = defaultArg mode LogOffMode.ForceIfHung
let _reason = defaultArg reason ShutdownReason.Other
let _ignoreErrors = defaultArg ignoreErrors true
*)
-> bool
No code example is currently available or this language may not be supported.
- mode LogOffMode (Optional)
-
Indicates whether to force the logoff.
- reason ShutdownReason (Optional)
-
The reason for initiating the shutdown.
- ignoreErrors Boolean (Optional)
-
If , a Win32Exception exception will be thrown if error found.
Boolean
If the function succeeds, the return value is
.
The function executes asynchronously so a
return value indicates that the shutdown has been initiated.
It does not indicate whether the shutdown will succeed.
It is possible that the system, the user, or another application will abort the shutdown.
If the function fails, the return value is
.