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
)

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.

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
Show: