System::Threading::SynchronizationContext::SetSynchronizationContext メソッド

SynchronizationContext::SetSynchronizationContext method

現在のスレッドの同期コンテキストを設定します。

static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
パラメーター説明
syncContextconst SharedPtr<SynchronizationContext>&現在のスレッドに設定する同期コンテキストです。

備考

nullptr を渡すと、現在のスレッドの同期コンテキストがクリアされます。

参照