IBackgroundTaskRegistration.Completed Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Joint un gestionnaire d’événements terminé à la tâche en arrière-plan inscrite.
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