MediaFailedRoutedEventArgs MediaFailedRoutedEventArgs MediaFailedRoutedEventArgs Class


Provides event data for media failed events.

public : sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs, IMediaFailedRoutedEventArgs
public sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs, IMediaFailedRoutedEventArgs
Public NotInheritable Class MediaFailedRoutedEventArgs Inherits ExceptionRoutedEventArgs Implements IMediaFailedRoutedEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


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.


ErrorMessage ErrorMessage ErrorMessage

Inherited from ExceptionRoutedEventArgs

ErrorTrace ErrorTrace ErrorTrace

Gets the trace information for a media failed event.

public : Platform::String ErrorTrace { get; }
public string ErrorTrace { get; }
Public ReadOnly Property ErrorTrace As string
Platform::String string string

The error trace for the failed media event.

OriginalSource OriginalSource OriginalSource

Inherited from RoutedEventArgs

See Also