UIContext.GetAwaiter Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Method that enables UIContexts going to true (activated) to be awaited on. The awaiter resumes the caller on the same context, i.e., If the caller was on the UI thread when awaited, the code after the await would resume on the UI thread.
public:
System::Runtime::CompilerServices::TaskAwaiter GetAwaiter();
public System.Runtime.CompilerServices.TaskAwaiter GetAwaiter ();
member this.GetAwaiter : unit -> System.Runtime.CompilerServices.TaskAwaiter
Public Function GetAwaiter () As TaskAwaiter
Returns
A task awaiter.