PowerState.OnSleepChange Event

Notifies listeners when a sleep event occurs.

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

public static event SleepChangeEventHandler OnSleepChange

The listeners will be notified prior to a sleep event and when the system wakes from a sleep.

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

Community Additions