UtilPowerSuspend Method
Sets the system in Suspend state.
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.
public static void Suspend(
bool force = false
)
Public Shared Sub Suspend (
Optional force As Boolean = false
)
Dim force As Boolean
UtilPower.Suspend(force)
public:
static void Suspend(
bool force = false
)
static member Suspend :
?force : bool
(* Defaults:
let _force = defaultArg force false
*)
-> unit
No code example is currently available or this language may not be supported.
Parameters
- force Boolean (Optional)
- to force the suspended mode immediately;
to cause the operating system to send a suspend request to every application.
If an application does not respond to a Suspend request within 20 seconds,
the operating system determines that it is in a non-responsive state,
and that the application can either be put to sleep or terminated.
Once an application responds to a suspend request,
it can take whatever time it needs to clean up resources and shut down active processes.