Sdílet prostřednictvím


Device.GetMainThreadSynchronizationContextAsync Metoda

Definice

Upozornění

Use BindableObject.Dispatcher.GetSynchronizationContextAsync() instead.

Vrátí proud SynchronizationContext z hlavního vlákna.

public:
 static System::Threading::Tasks::Task<System::Threading::SynchronizationContext ^> ^ GetMainThreadSynchronizationContextAsync();
[System.Obsolete("Use BindableObject.Dispatcher.GetSynchronizationContextAsync() instead.")]
public static System.Threading.Tasks.Task<System.Threading.SynchronizationContext> GetMainThreadSynchronizationContextAsync ();
[<System.Obsolete("Use BindableObject.Dispatcher.GetSynchronizationContextAsync() instead.")>]
static member GetMainThreadSynchronizationContextAsync : unit -> System.Threading.Tasks.Task<System.Threading.SynchronizationContext>
Public Shared Function GetMainThreadSynchronizationContextAsync () As Task(Of SynchronizationContext)

Návraty

Proud SynchronizationContext z hlavního vlákna.

Atributy

Platí pro