共用方式為


JoinableTaskFactory.OnTransitioningToMainThread(JoinableTask) Method

Definition

Raised when a joinable task has requested a transition to the main thread.

protected public:
 virtual void OnTransitioningToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask);
protected public:
 virtual void OnTransitioningToMainThread(Microsoft::VisualStudio::Threading::JoinableTask ^ joinableTask);
 virtual void OnTransitioningToMainThread(Microsoft::VisualStudio::Threading::JoinableTask const & joinableTask);
protected internal virtual void OnTransitioningToMainThread (Microsoft.VisualStudio.Threading.JoinableTask joinableTask);
abstract member OnTransitioningToMainThread : Microsoft.VisualStudio.Threading.JoinableTask -> unit
override this.OnTransitioningToMainThread : Microsoft.VisualStudio.Threading.JoinableTask -> unit
Protected Friend Overridable Sub OnTransitioningToMainThread (joinableTask As JoinableTask)

Parameters

joinableTask
JoinableTask

The task requesting the transition to the main thread.

Remarks

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

Applies to