EventRegistrationTokenTable<T>.GetOrCreateEventRegistrationTokenTable Méthode

Définition

Retourne le tableau de jetons d'inscription d'événement spécifié, si ce n'est pas null ; sinon, retourne un nouveau tableau de jetons d'inscription d'événement.

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)

Paramètres

refEventTable
EventRegistrationTokenTable<T>

Table de jetons d'inscription d'événement, passé par référence.

Retours

Tableau de jetons d'inscription d'événement spécifié par refEventTable, s'il n'a pas la valeur null ; sinon, nouveau tableau de jetons d'inscription d'événement.

Remarques

Utilisez la GetOrCreateEventRegistrationTokenTable méthode pour initialiser une table de jetons d’inscription d’événements dans des scénarios où plusieurs threads peuvent créer la table. Si cette méthode est appelée sur plusieurs threads en même temps, la même table de jetons d’inscription d’événements est retournée sur tous les threads.

S’applique à