Muokkaa

Jaa


EventRegistrationTokenTable<T>.RemoveEventHandler Method

Definition

Removes an event handler from the table and the invocation list.

Overloads

RemoveEventHandler(EventRegistrationToken)

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

RemoveEventHandler(T)

Removes the specified event handler delegate from the table and the invocation list.

RemoveEventHandler(EventRegistrationToken)

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

public:
 void RemoveEventHandler(System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken token);
public void RemoveEventHandler (System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken token);
member this.RemoveEventHandler : System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken -> unit
Public Sub RemoveEventHandler (token As EventRegistrationToken)

Parameters

token
EventRegistrationToken

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

Remarks

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

Applies to

RemoveEventHandler(T)

Removes the specified event handler delegate from the table and the invocation list.

public:
 void RemoveEventHandler(T handler);
public void RemoveEventHandler (T handler);
public void RemoveEventHandler (T? handler);
member this.RemoveEventHandler : 'T -> unit
Public Sub RemoveEventHandler (handler As T)

Parameters

handler
T

The event handler to remove.

Remarks

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

Applies to