System::Threading::SynchronizationContext::get_Current 方法

SynchronizationContext::get_Current method

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

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

ReturnValue

SharedPtr A shared pointer to the current thread’s synchronization context.

备注

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

另见