Battery.WaitForEvent Method

Windows Automotive 5.0/5.5
Pauses execution for a specified amount of time and waits for a battery event.

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

[MethodImplAttribute]
public static bool WaitForEvent (
         int timeout
)

Parameters

timeout
The amount of time you want the system to wait for a battery event, in clocks ticks.

Return Value

true if a battery event occurs within the specified amount of time; otherwise, false.

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

Community Additions

ADD
Show: