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>

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

返品

refEventTableによって指定されたイベント登録トークン テーブル (nullでない場合)、それ以外の場合は新しいイベント登録トークン テーブル。

注釈

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

適用対象