System::Threading::SynchronizationContext::SetSynchronizationContext 方法
SynchronizationContext::SetSynchronizationContext method
设置当前线程的同步上下文。
static void System::Threading::SynchronizationContext::SetSynchronizationContext(const SharedPtr<SynchronizationContext> &syncContext)
| Parameter | Type | 描述 |
|---|---|---|
| syncContext | const SharedPtr<SynchronizationContext>& | 要为当前线程设置的同步上下文。 |
备注
传入 nullptr 将清除当前线程的同步上下文。
另见
- Typedef SharedPtr
- Class SynchronizationContext
- Class SynchronizationContext
- Namespace System::Threading
- Library Aspose.Page for C++