Partager via


PushNotificationReceivedEventArgs.Canceled Événement

Définition

Déclenché lorsque le système va annuler la tâche en arrière-plan lancée pour gérer l’événement PushReceived.

public:
 virtual event BackgroundTaskCanceledEventHandler ^ Canceled;
// Register
event_token Canceled(BackgroundTaskCanceledEventHandler const& handler) const;

// Revoke with event_token
void Canceled(event_token const* cookie) const;

// Revoke with event_revoker
PushNotificationReceivedEventArgs::Canceled_revoker Canceled(auto_revoke_t, BackgroundTaskCanceledEventHandler const& handler) const;
public event BackgroundTaskCanceledEventHandler Canceled;
function onCanceled(eventArgs) { /* Your code */ }
pushNotificationReceivedEventArgs.addEventListener("canceled", onCanceled);
pushNotificationReceivedEventArgs.removeEventListener("canceled", onCanceled);
- or -
pushNotificationReceivedEventArgs.oncanceled = onCanceled;
Public Custom Event Canceled As BackgroundTaskCanceledEventHandler 

Type d'événement

Remarques

Pour plus d’informations sur les raisons pour lesquelles le système peut annuler une tâche en arrière-plan, consultez BackgroundTaskCancellationReason.

S’applique à