can_suspend


Description:

[ Version ( since = "4.19.1" ) ]
public bool can_suspend (out bool can_suspend, out bool auth_suspend) throws Error

Check whether systemd can trigger and has authorization for Suspend.

Parameters:

this

the Systemd object

can_suspend

location to store capacity or null

auth_suspend

location to store authorization or null

Returns:

true if the D-Bus request was successful, false otherwise and throws is set.