Add Method

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

Adds a specified handler for a specified target to the event route.

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

Syntax

'Declaration
Public Sub Add ( _
    target As Object, _
    handler As RoutedEventHandler, _
    handledEventsToo As Boolean _
)
public void Add(
    Object target,
    RoutedEventHandler handler,
    bool handledEventsToo
)
public:
void Add(
    Object^ target, 
    RoutedEventHandler^ handler, 
    bool handledEventsToo
)
member Add : 
        target:Object * 
        handler:RoutedEventHandler * 
        handledEventsToo:bool -> unit 
public function Add(
    target : Object, 
    handler : RoutedEventHandler, 
    handledEventsToo : boolean
)

Parameters

  • target
    Type: System. . :: . .Object
    The target object for which a handler is to be added to the event route.
  • handledEventsToo
    Type: System. . :: . .Boolean
    A value that indicates whether or not the listener detects events that have already been handled.

.NET Framework Security

See Also

Reference

EventRoute Class

Microsoft.SPOT Namespace