共用方式為


DelegatingJoinableTaskFactory.OnTransitionedToMainThread 方法

定義

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

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

參數

joinableTask
JoinableTask

要求轉換至主執行緒的工作已完成。

canceled
Boolean

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

備註

此事件通常會在主線程上引發,但可以在 為truecanceled位於另一個線程上。

適用於