ToastNotification.Failed Evento

Definizione

Si verifica quando si verifica un errore quando Windows tenta di generare una notifica di tipo avviso popup. Le app in esecuzione sottoscrivono questo evento.

// Register
event_token Failed(TypedEventHandler<ToastNotification, ToastFailedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
ToastNotification::Failed_revoker Failed(auto_revoke_t, TypedEventHandler<ToastNotification, ToastFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<ToastNotification,ToastFailedEventArgs> Failed;
function onFailed(eventArgs) { /* Your code */ }
toastNotification.addEventListener("failed", onFailed);
toastNotification.removeEventListener("failed", onFailed);
- or -
toastNotification.onfailed = onFailed;
Public Custom Event Failed As TypedEventHandler(Of ToastNotification, ToastFailedEventArgs) 

Tipo evento

Commenti

Il motivo dell'errore dell'avviso popup è disponibile nella proprietà ErrorCode del parametro ToastFailedEventArgs .

L'errore più comune che verrà visualizzato quando si genera un avviso popup è un errore di impostazioni , ad esempio un blocco nelle notifiche di tipo avviso popup per questo utente. È consigliabile chiamare ToastNotifier.Setting prima di chiamare Show anziché gestire tale situazione tramite questo evento.

Si applica a

Vedi anche