Share via


EventRegistrationTokenTable<T>.GetOrCreateEventRegistrationTokenTable メソッド

定義

これが nullでない場合には、指定されたイベントの登録トークン テーブルを返します。それ以外の場合、新しいイベント登録トークン テーブルを返します。

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)

パラメーター

refEventTable
EventRegistrationTokenTable<T>

参照渡しされるイベント登録テーブル トークン。

戻り値

これが null でない場合は refEventTable で指定されたイベント登録トークン テーブル。それ以外の場合は新しいイベント登録トークン テーブル。

注釈

複数の GetOrCreateEventRegistrationTokenTable スレッドのいずれかがテーブルを作成できるシナリオでは、 メソッドを使用してイベント登録トークン テーブルを初期化します。 このメソッドが複数のスレッドで同時に呼び出されると、すべてのスレッドで同じイベント登録トークン テーブルが返されます。

適用対象