System::Threading::SynchronizationContext::SetSynchronizationContext Methode

SynchronizationContext::SetSynchronizationContext method

Setzt den Synchronisationskontext für den aktuellen Thread.

static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
ParameterTypBeschreibung
syncContextconst SharedPtr<SynchronizationContext>&Der Synchronisationskontext, der für den aktuellen Thread festgelegt werden soll.

Hinweise

Das Übergeben von nullptr löscht den Synchronisationskontext für den aktuellen Thread.

Siehe auch