UtilPowerAbortShutdown Method

Aborts a system shutdown operation that has been initiated (unless a LogOff).

Definition

Namespace: DevCase.Core.IO.Devices.Power
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool AbortShutdown(
	string computer = "",
	bool ignoreErrors = true
)

Parameters

computer  String  (Optional)
The network name of the computer where the shutdown is to be stopped.

If this parameter is an empty string, the function aborts the shutdown on the local computer.

ignoreErrors  Boolean  (Optional)
If , a Win32Exception exception will be thrown if error found.

Return Value

Boolean
if the function succeeds, otherwise.

Exceptions

Win32Exception

See Also