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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- handler
-
Type:
T
The event handler to add.
Return Value
Type: System.Runtime.InteropServices.WindowsRuntime::EventRegistrationTokenA 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
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
Show: