AddEventHandler Method
Collapse the table of content
Expand the table of content

EventRegistrationTokenTable(Of T).AddEventHandler Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Adds the specified event handler to the table and to the invocation list, and returns a token that can be used to remove the event handler.

Namespace:  System.Runtime.InteropServices.WindowsRuntime
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Function AddEventHandler ( _
	handler As T _
) As EventRegistrationToken

Parameters

handler
Type: T
The event handler to add.

Return Value

Type: System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken
A token that can be used to remove the event handler from the table and the invocation list.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft