BackgroundTaskRegistration.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:
virtual 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
BackgroundTaskRegistration::Completed_revoker Completed(auto_revoke_t, BackgroundTaskCompletedEventHandler const& handler) const;
public event BackgroundTaskCompletedEventHandler Completed;
function onCompleted(eventArgs) { /* Your code */ }
backgroundTaskRegistration.addEventListener("completed", onCompleted);
backgroundTaskRegistration.removeEventListener("completed", onCompleted);
- or -
backgroundTaskRegistration.oncompleted = onCompleted;
Public Custom Event Completed As BackgroundTaskCompletedEventHandler Implements Completed