MediaFailedRoutedEventArgs Klasse

Definition

Stellt Ereignisdaten für medienfehlerrelevante Ereignisse bereit.

public ref class MediaFailedRoutedEventArgs sealed : ExceptionRoutedEventArgs
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaFailedRoutedEventArgs final : ExceptionRoutedEventArgs
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaFailedRoutedEventArgs : ExceptionRoutedEventArgs
Public NotInheritable Class MediaFailedRoutedEventArgs
Inherits ExceptionRoutedEventArgs
Vererbung
Object Platform::Object IInspectable RoutedEventArgs ExceptionRoutedEventArgs MediaFailedRoutedEventArgs
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

MediaFailedRoutedEventArgs sind die Ereignisdaten für das MediaFailed-Ereignis . MediaFailedRoutedEventArgs erweitert ExceptionRoutedEventArgs durch Hinzufügen der ErrorTrace-Eigenschaft . Wandeln Sie in einem Handler für MediaFailed die ExceptionRoutedEventArgs-Daten in MediaFailedRoutedEventArgs um, sodass Sie die ErrorTrace-Informationen verwenden können. Andernfalls können Sie ohne Umwandlung auf ErrorMessage zugreifen, wenn Sie nur an der Nachricht interessiert sind.

Eigenschaften

ErrorMessage

Ruft die Nachrichtenkomponente der Ausnahme als Zeichenfolge ab.

(Geerbt von ExceptionRoutedEventArgs)
ErrorTrace

Ruft die Ablaufverfolgungsinformationen für ein Medienfehlerereignis ab.

OriginalSource

Ruft einen Verweis auf das -Objekt ab, das das Ereignis ausgelöst hat. Dies ist häufig ein Vorlagenteil eines Steuerelements und nicht ein Element, das in Ihrer App-Benutzeroberfläche deklariert wurde.

(Geerbt von RoutedEventArgs)

Gilt für:

Weitere Informationen