Langue

EventRegistrationTokenTable<T>.GetOrCreateEventRegistrationTokenTable Méthode

Définition

Retourne la table de jetons d’inscription d’événement spécifiée, si ce n’est pas nullle cas ; sinon, retourne une nouvelle table 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ée par référence.

Retours

Table de jetons d’inscription d’événement spécifiée par refEventTable, si ce n’est pas nullle cas ; sinon, une nouvelle table 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ù l’un des threads peut 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énement est retournée sur tous les threads.

S’applique à