次の方法で共有


IBackgroundTaskRegistration.Completed イベント

定義

完了したイベント ハンドラーを登録済みのバックグラウンド タスクにアタッチします。

public:
 event BackgroundTaskCompletedEventHandler ^ Completed;
// Register
event_token Completed(BackgroundTaskCompletedEventHandler const& handler) const;

// Revoke with event_token
void Completed(event_token const* cookie) const;

// Revoke with event_revoker
IBackgroundTaskRegistration::Completed_revoker Completed(auto_revoke_t, BackgroundTaskCompletedEventHandler const& handler) const;
event BackgroundTaskCompletedEventHandler Completed;
function onCompleted(eventArgs) { /* Your code */ }
iBackgroundTaskRegistration.addEventListener("completed", onCompleted);
iBackgroundTaskRegistration.removeEventListener("completed", onCompleted);
- or -
iBackgroundTaskRegistration.oncompleted = onCompleted;
Event Completed As BackgroundTaskCompletedEventHandler 

イベントの種類

適用対象