JoinableTaskFactory.OnTransitionedToMainThread Method (JoinableTask, Boolean)

 

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

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Protected Friend Overridable Sub OnTransitionedToMainThread (
	joinableTask As JoinableTask,
	canceled As Boolean
)

Parameters

joinableTask
Type: Microsoft.VisualStudio.Threading.JoinableTask

The task whose request to transition to the main thread has completed.

canceled
Type: System.Boolean

true if the transition was cancelled before it was fulfilled, otherwise false.

This event is usually raised on the main thread, but can be raised on another thread when canceled is true.

Return to top
Show: