## SynchronizationContext::get_Current method


获取当前线程的同步上下文。

```cpp
static const SharedPtr<SynchronizationContext> & System::Threading::SynchronizationContext::get_Current()
```


### ReturnValue

[SharedPtr<SynchronizationContext>](../../../system/sharedptr/) A shared pointer to the current thread's synchronization context.
## 备注



如果当前线程未设置同步上下文，则返回 null。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [SynchronizationContext](../)
* Class [SynchronizationContext](../)
* Namespace [System::Threading](../../)
* Library [Aspose.Page for C++](../../../)
