MediaPlaybackList.ItemFailed Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when an error is encountered with a MediaPlaybackItem in the playback list.
// Register
event_token ItemFailed(TypedEventHandler<MediaPlaybackList, MediaPlaybackItemFailedEventArgs const&> const& handler) const;
// Revoke with event_token
void ItemFailed(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackList::ItemFailed_revoker ItemFailed(auto_revoke_t, TypedEventHandler<MediaPlaybackList, MediaPlaybackItemFailedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackList,MediaPlaybackItemFailedEventArgs> ItemFailed;
function onItemFailed(eventArgs) { /* Your code */ }
mediaPlaybackList.addEventListener("itemfailed", onItemFailed);
mediaPlaybackList.removeEventListener("itemfailed", onItemFailed);
- or -
mediaPlaybackList.onitemfailed = onItemFailed;
Public Custom Event ItemFailed As TypedEventHandler(Of MediaPlaybackList, MediaPlaybackItemFailedEventArgs)