JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean) 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.
Raised whenever a joinable task has completed a transition to the main thread.
protected public:
virtual void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask, bool canceled);
protected public:
virtual void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask, bool canceled);
virtual void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask const & joinableTask, bool canceled);
protected internal virtual void OnTransitionedToMainThread (Microsoft.VisualStudio.Threading.JoinableTask joinableTask, bool canceled);
abstract member OnTransitionedToMainThread : Microsoft.VisualStudio.Threading.JoinableTask * bool -> unit
override this.OnTransitionedToMainThread : Microsoft.VisualStudio.Threading.JoinableTask * bool -> unit
Protected Friend Overridable Sub OnTransitionedToMainThread (joinableTask As JoinableTask, canceled As Boolean)
Parameters
- joinableTask
- JoinableTask
The task whose request to transition to the main thread has completed.
- canceled
- Boolean
A value indicating whether the transition was cancelled before it was fulfilled.
Remarks
This event is usually raised on the main thread, but can be on another thread when canceled
is true
.