IBackgroundTaskRegistration.Completed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attaches a completed event handler to the registered background task.
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