DelegatingJoinableTaskFactory.OnTransitionedToMainThread Method

Definition

Raised whenever a joinable task has completed a transition to the main thread.

protected public:
 override void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask, bool canceled);
protected public:
 override void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask, bool canceled);
 override void OnTransitionedToMainThread(Microsoft::VisualStudio::Threading::JoinableTask const & joinableTask, bool canceled);
protected internal override void OnTransitionedToMainThread (Microsoft.VisualStudio.Threading.JoinableTask joinableTask, bool canceled);
override this.OnTransitionedToMainThread : Microsoft.VisualStudio.Threading.JoinableTask * bool -> unit
Protected Friend Overrides 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