JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean) 方法

定义

每当可联接任务完成到main线程的转换时引发。

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

参数

joinableTask
JoinableTask

已完成转换到主线程请求的任务。

canceled
Boolean

指示是否在完成前已取消该转换的值。

注解

此事件通常在main线程上引发,但当 为 truecanceled,可以在另一个线程上引发。

适用于