Share via


PowerState.RebootDevice Method (Boolean, Int32)

Enables the caller to force a soft or hard reboot of the device, with the specified execution timeout constraint.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public static void RebootDevice (
         bool soft,
         int exeConstraintTimeout_ms
)

Parameters

  • soft
    true indicates that the reboot request is for a soft reboot; false indicates hard reboot. Some devices might not support soft reboot.
  • exeConstraintTimeout_ms
    Execution constraint timeout (in milliseconds) for the event handlers. If the event handlers take longer than the given value, then the handlers will be aborted and the reboot will be executed.

Remarks

This method raises the OnRebootEvent.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

PowerState Class
PowerState Members
Microsoft.SPOT.Hardware Namespace