Windows Dev Center

MediaFailedRoutedEventArgs class

Provides event data for media failed events.

Inheritance

Object
  RoutedEventArgs
    ExceptionRoutedEventArgs
      MediaFailedRoutedEventArgs

Syntax


public sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs

Attributes

[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]
[WebHostHidden()]

Members

The MediaFailedRoutedEventArgs class has these types of members:

Methods

The MediaFailedRoutedEventArgs class inherits methods from the Object class.

Properties

The MediaFailedRoutedEventArgs class has these properties.

PropertyAccess typeDescription

ErrorMessage

Read-onlyGets the message component of the exception, as a string. (Inherited from ExceptionRoutedEventArgs)

ErrorTrace

Read-onlyGets the trace information for a media failed event.

OriginalSource

Read-onlyGets 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)

 

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.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Object
ExceptionRoutedEventArgs
MediaFailed

 

 

Show:
© 2015 Microsoft