EventRegistrationTokenTable<T>.AddEventHandler(T) Metodo

Definizione

Aggiunge il gestore eventi specificato alla tabella e all'elenco chiamate e restituisce un token che può essere usato per rimuovere il gestore eventi.

public:
 System::Runtime::InteropServices::WindowsRuntime::EventRegistrationToken AddEventHandler(T handler);
public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler(T handler);
public System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken AddEventHandler(T? handler);
member this.AddEventHandler : 'T -> System.Runtime.InteropServices.WindowsRuntime.EventRegistrationToken
Public Function AddEventHandler (handler As T) As EventRegistrationToken

Parametri

handler
T

Gestore eventi da aggiungere.

Valori restituiti

Token che può essere usato per rimuovere il gestore eventi dalla tabella e dall'elenco chiamate.

Si applica a