AdaptiveMediaSource.DownloadFailed É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.
Se produit lorsqu’une opération de téléchargement de ressource échoue.
// Register
event_token DownloadFailed(TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadFailedEventArgs const&> const& handler) const;
// Revoke with event_token
void DownloadFailed(event_token const* cookie) const;
// Revoke with event_revoker
AdaptiveMediaSource::DownloadFailed_revoker DownloadFailed(auto_revoke_t, TypedEventHandler<AdaptiveMediaSource, AdaptiveMediaSourceDownloadFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<AdaptiveMediaSource,AdaptiveMediaSourceDownloadFailedEventArgs> DownloadFailed;
function onDownloadFailed(eventArgs) { /* Your code */ }
adaptiveMediaSource.addEventListener("downloadfailed", onDownloadFailed);
adaptiveMediaSource.removeEventListener("downloadfailed", onDownloadFailed);
- or -
adaptiveMediaSource.ondownloadfailed = onDownloadFailed;
Public Custom Event DownloadFailed As TypedEventHandler(Of AdaptiveMediaSource, AdaptiveMediaSourceDownloadFailedEventArgs)