API Reference
Class
RebootState
Detects whether a reboot is pending on a Windows computer via known registry locations.
Inheritance
- Object
- RebootState
Methods
public static Boolean IsRebootPending(String computerName = null) #Returns:
BooleanReturns true when a reboot is pending, based on PendingFileRenameOperations, Windows Update, or CBS keys.
Parameters
- computerName System.String = null
- Hostname; null checks the local machine.
public static Boolean TryGetRebootPending(String computerName, out Boolean isPendingReboot, out String error) #Returns:
BooleanAttempts to detect pending reboot state and preserves access failures explicitly.
Parameters
- computerName System.String
- Hostname; null checks the local machine.
- isPendingReboot System.Boolean@
- True when a pending reboot signal was found.
- error System.String@
- Operational error message when a required registry read failed.
Returns
true when detection completed with readable signals; false when access/runtime failures prevented reliable detection.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object