Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EventRegistrationTokenTable<T>.AddEventHandler Method (T)

.NET Framework (current version)

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)

public EventRegistrationToken AddEventHandler(
	T 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.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2016 Microsoft