WaitForEvent Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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)
Syntax
'Declaration
Public Shared Function WaitForEvent ( _
timeout As Integer _
) As Boolean
public static bool WaitForEvent(
int timeout
)
public:
static bool WaitForEvent(
int timeout
)
static member WaitForEvent :
timeout:int -> bool
public static function WaitForEvent(
timeout : int
) : boolean
Parameters
- timeout
Type: System. . :: . .Int32
The amount of time you want the system to wait for a battery event, in clocks ticks.
Return Value
Type: System. . :: . .Boolean
true if a battery event occurs within the specified amount of time; otherwise, false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.