MainThread.GetMainThreadSynchronizationContextAsync Metodo

Definizione

Ottiene il contesto di sincronizzazione del thread principale.

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)

Restituisce

Contesto di sincronizzazione per il thread principale.

Si applica a