Share via


JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean) Method

Definition

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.

Applies to