다음을 통해 공유


Device.GetMainThreadSynchronizationContextAsync 메서드

정의

주의

Use BindableObject.Dispatcher.GetSynchronizationContextAsync() instead.

주 스레드에서 현재 SynchronizationContext를 반환합니다.

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)

반환

주 스레드에서의 현재 SynchronizationContext입니다.

특성

적용 대상