Windows Dev Center

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>.RemoveEventHandler Method (EventRegistrationToken)

.NET Framework 4.6 and 4.5

Removes the event handler that is associated with the specified token from the table and the invocation list.

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

public void RemoveEventHandler(
	EventRegistrationToken token


Type: System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken

The token that was returned when the event handler was added.

If the token is not registered, the table and the invocation list are not modified.

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
© 2015 Microsoft