-api-id | -api-type |
---|---|
T:Windows.UI.Xaml.MediaFailedRoutedEventArgs |
winrt class |
Provides event data for media failed events.
MediaFailedRoutedEventArgs is the event data for the MediaFailed event. MediaFailedRoutedEventArgs extends ExceptionRoutedEventArgs by adding the ErrorTrace property. In a handler for MediaFailed, cast the ExceptionRoutedEventArgs data as MediaFailedRoutedEventArgs so that you can use the ErrorTrace information. Otherwise, if you're only interested in the message, you can access ErrorMessage without casting.