RemoveEventHandler Method (EventRegistrationToken)
Collapse the table of content
Expand the table of content

EventRegistrationTokenTable<T>.RemoveEventHandler Method (EventRegistrationToken)

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

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

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

public void RemoveEventHandler(
	EventRegistrationToken token
)

Parameters

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft