Struttura InvokeHelper

Supporta l'infrastruttura WRL e non può essere utilizzata direttamente dal proprio codice.

template<
   typename TDelegateInterface,
   typename TCallback,
   unsigned int argCount
>
struct InvokeHelper;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 0> : public Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 1> : public Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 2> : public Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 3> : public Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 4> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 5> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 6> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 7> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 8> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;
template<
   typename TDelegateInterface,
   typename TCallback
>
struct InvokeHelper<TDelegateInterface, TCallback, 9> : Microsoft::WRL::RuntimeClass<RuntimeClassFlags<Delegate>, TDelegateInterface>;

Parametri

  • TDelegateInterface

  • TCallback
    Il tipo della funzione del gestore eventi.

  • argCount
    Il numero di argomenti in una specializzazione InvokeHelper.

Note

Fornisce un'implementazione del metodo Invoke() basato sul numero specificato e sul tipo di argomenti.

Membri

BR244850.collapse_all(it-it,VS.110).gifTypedef pubblici

Nome

Descrizione

Traits

Un sinonimo per la classe che definisce il tipo di ciascun argomento del gestore eventi.

BR244850.collapse_all(it-it,VS.110).gifCostruttori pubblici

Nome

Descrizione

Costruttore InvokeHelper::InvokeHelper

Inizializza una nuova istanza della classe InvokeHelper.

BR244850.collapse_all(it-it,VS.110).gifMetodi pubblici

Nome

Descrizione

Metodo InvokeHelper::Invoke

Chiama il gestore eventi la cui firma contiene il numero specificato di argomenti.

BR244850.collapse_all(it-it,VS.110).gifMembri dati pubblici

Nome

Descrizione

Membro dati InvokeHelper::callback_

Rappresenta il gestore eventi da chiamare quando si verifica un evento .

Gerarchia di ereditarietà

InvokeHelper

Requisiti

Header: event.h

Namespace: Microsoft::WRL::Details

Vedere anche

Riferimenti

Spazio dei nomi Microsoft::WRL::Details