Partager via


BackgroundTaskRegistration.Completed Événement

Définition

Joint un gestionnaire d’événements terminé à la tâche en arrière-plan inscrite.

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

Type d'événement

Implémente

S’applique à