MainThread.GetMainThreadSynchronizationContextAsync 方法

定义

获取main线程同步上下文。

public:
 static System::Threading::Tasks::Task<System::Threading::SynchronizationContext ^> ^ GetMainThreadSynchronizationContextAsync();
public static System.Threading.Tasks.Task<System.Threading.SynchronizationContext> GetMainThreadSynchronizationContextAsync ();
static member GetMainThreadSynchronizationContextAsync : unit -> System.Threading.Tasks.Task<System.Threading.SynchronizationContext>
Public Shared Function GetMainThreadSynchronizationContextAsync () As Task(Of SynchronizationContext)

返回

main线程的同步上下文。

适用于