共用方式為


JoinableTaskFactory.OnTransitionedToMainThread(JoinableTask, Boolean) 方法

定義

每當可聯結的工作完成轉換至主線程時引發。

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

表示轉換是否已在完成之前取消的值。

備註

這個事件通常會在主線程上引發,但當 為 true時,可以在另一個線程上canceled引發。

適用於