Share via


RebootDevice Method (Boolean, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

'Declaration
Public Shared Sub RebootDevice ( _
    soft As Boolean, _
    exeConstraintTimeout_ms As Integer _
)
public static void RebootDevice(
    bool soft,
    int exeConstraintTimeout_ms
)
public:
static void RebootDevice(
    bool soft, 
    int exeConstraintTimeout_ms
)
static member RebootDevice : 
        soft:bool * 
        exeConstraintTimeout_ms:int -> unit 
public static function RebootDevice(
    soft : boolean, 
    exeConstraintTimeout_ms : int
)

Parameters

  • soft
    Type: System. . :: . .Boolean
    true indicates that the reboot request is for a soft reboot; false indicates hard reboot. Some devices might not support soft reboot.
  • exeConstraintTimeout_ms
    Type: System. . :: . .Int32
    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 event.

.NET Framework Security

See Also

Reference

PowerState Class

RebootDevice Overload

Microsoft.SPOT.Hardware Namespace