System::Threading::SynchronizationContext::SetSynchronizationContext methode

SynchronizationContext::SetSynchronizationContext method

Stelt de synchronisatie‑context in voor de huidige thread.

static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
ParameterTypeBeschrijving
syncContextconst SharedPtr<SynchronizationContext>&De synchronisatiecontext die moet worden ingesteld voor de huidige thread.

Opmerkingen

Het doorgeven van nullptr zal de synchronisatiecontext voor de huidige thread wissen.

Zie ook