MediaFailedRoutedEventArgs MediaFailedRoutedEventArgs MediaFailedRoutedEventArgs MediaFailedRoutedEventArgs Class

Definition

Provides event data for media failed events.

public : sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs
struct winrt::Windows::UI::Xaml::MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs
public sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs
Public NotInheritable Class MediaFailedRoutedEventArgs Inherits ExceptionRoutedEventArgs
Inheritance
MediaFailedRoutedEventArgsMediaFailedRoutedEventArgsMediaFailedRoutedEventArgsMediaFailedRoutedEventArgs
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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.

Properties

ErrorMessage ErrorMessage ErrorMessage ErrorMessage

Gets the message component of the exception, as a string.

(Inherited from ExceptionRoutedEventArgs)
ErrorTrace ErrorTrace ErrorTrace ErrorTrace

Gets the trace information for a media failed event.

OriginalSource OriginalSource OriginalSource OriginalSource

Gets a reference to the object that raised the event. This is often a template part of a control rather than an element that was declared in your app UI.

(Inherited from RoutedEventArgs)

See also