System::Threading::SynchronizationContext::SetSynchronizationContext method

SynchronizationContext::SetSynchronizationContext method

Sets the synchronization context for the current thread.

static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
ParameterTypeDescription
syncContextconst SharedPtr<SynchronizationContext>&The synchronization context to set for the current thread.

Remarks

Passing nullptr will clear the synchronization context for the current thread.

See Also