BackgroundTaskRegistration.Completed BackgroundTaskRegistration.Completed BackgroundTaskRegistration.Completed BackgroundTaskRegistration.Completed BackgroundTaskRegistration.Completed Event

Definition

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
Completed_revoker Completed(auto_revoke_t, BackgroundTaskCompletedEventHandler const& handler) const;
public event BackgroundTaskCompletedEventHandler Completed
Public Event Completed As BackgroundTaskCompletedEventHandler
function onCompleted(eventArgs){/* Your code */}


backgroundTaskRegistration.addEventListener("completed", onCompleted);
backgroundTaskRegistration.removeEventListener("completed", onCompleted);