OnEvent Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Handles generic events.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Function OnEvent ( _
ev As BaseEvent _
) As Boolean
public bool OnEvent(
BaseEvent ev
)
public:
virtual bool OnEvent(
BaseEvent^ ev
) sealed
abstract OnEvent :
ev:BaseEvent -> bool
override OnEvent :
ev:BaseEvent -> bool
public final function OnEvent(
ev : BaseEvent
) : boolean
Parameters
- ev
Type: Microsoft.SPOT. . :: . .BaseEvent
The event that occurred.
Return Value
Type: System. . :: . .Boolean
true if the event was processed; otherwise, false.
Implements
IEventListener. . :: . .OnEvent(BaseEvent)
.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.