EventRegistrationTokenTable<T>.GetOrCreateEventRegistrationTokenTable Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Restituisce la tabella del token di registrazione eventi specificata, se non nullè ; in caso contrario, restituisce una nuova tabella del token di registrazione eventi.
public:
static System::Runtime::InteropServices::WindowsRuntime::EventRegistrationTokenTable<T> ^ GetOrCreateEventRegistrationTokenTable(System::Runtime::InteropServices::WindowsRuntime::EventRegistrationTokenTable<T> ^ % refEventTable);
public static System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable<T> GetOrCreateEventRegistrationTokenTable(ref System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable<T> refEventTable);
public static System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable<T> GetOrCreateEventRegistrationTokenTable(ref System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable<T>? refEventTable);
static member GetOrCreateEventRegistrationTokenTable : EventRegistrationTokenTable -> System.Runtime.InteropServices.WindowsRuntime.EventRegistrationTokenTable<'T (requires 'T : null)>
Public Shared Function GetOrCreateEventRegistrationTokenTable (ByRef refEventTable As EventRegistrationTokenTable(Of T)) As EventRegistrationTokenTable(Of T)
Parametri
- refEventTable
- EventRegistrationTokenTable<T>
Tabella del token di registrazione eventi, passata per riferimento.
Valori restituiti
Tabella del token di registrazione eventi specificata da refEventTable, se non nullè ; in caso contrario, una nuova tabella del token di registrazione eventi.
Commenti
Usare il GetOrCreateEventRegistrationTokenTable metodo per inizializzare una tabella di token di registrazione eventi in scenari in cui uno dei diversi thread può creare la tabella. Se questo metodo viene chiamato contemporaneamente su più thread, viene restituita la stessa tabella del token di registrazione eventi in tutti i thread.