JoinableTaskFactory.OnTransitioningToMainThread Method
Occurs when a joinable task has requested a transition to the main thread.
Namespace: Microsoft.VisualStudio.Threading
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
Syntax
'Declaration
Protected Friend Overridable Sub OnTransitioningToMainThread ( _
joinableTask As JoinableTask _
)
protected internal virtual void OnTransitioningToMainThread(
JoinableTask joinableTask
)
protected public:
virtual void OnTransitioningToMainThread(
JoinableTask^ joinableTask
)
abstract OnTransitioningToMainThread :
joinableTask:JoinableTask -> unit
override OnTransitioningToMainThread :
joinableTask:JoinableTask -> unit
function OnTransitioningToMainThread(
joinableTask : JoinableTask
)
Parameters
joinableTask
Type: Microsoft.VisualStudio.Threading.JoinableTaskThe task that is requesting the transition to the main thread.
Remarks
This event may be raised on any thread, including the main thread.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.