MediaFailedRoutedEventArgs class

Applies to Windows and Windows Phone

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. (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

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

ExceptionRoutedEventArgs
MediaFailed

 

 

Show:
© 2014 Microsoft. All rights reserved.