Compartilhar via


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

Remarks

This event may be raised on any thread, including the main thread.

.NET Framework Security

See Also

Reference

JoinableTaskFactory Class

Microsoft.VisualStudio.Threading Namespace