Compartilhar via


MainThread.GetMainThreadSynchronizationContextAsync Método

Definição

Obtém o contexto de sincronização de thread 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)

Retornos

O contexto de sincronização para o thread main.

Aplica-se a