WatchdogBehavior Enumeration

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

Defines named ways that the system can handle watchdog events.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)

Syntax

'Declaration
Public Enumeration WatchdogBehavior
public enum WatchdogBehavior
public enum class WatchdogBehavior
type WatchdogBehavior
public enum WatchdogBehavior

Members

Member name Description
None Continues execution. Might leave the system in a stalled state.
SoftReboot Performs a software reboot of the CLR. If the device does not support soft reboot, a hard reboot will occur.
HardReboot Performs a hardware reboot of the device.
EnterBooter Enters the bootloader and waits for commands.
DebugBreak_Managed Injects a WatchdogException exception into the current managed thread. This will only work for native methods that take longer than the allotted watchdog timeout. If the system is truly hung, then the exception will not be seen.
DebugBreak_Native Intended for native debugging, as when using the Porting Kit. Stops execution at the native level.

Remarks

All behavior types will attempt to log a watchdog event, which can be retrieved with the LastOccurrence property on the Watchdog class.

See Also

Reference

Microsoft.SPOT.Hardware Namespace