共用方式為


MediaElement.MediaFailed 事件

定義

遇到錯誤時發生。

public:
 event EventHandler<System::Windows::ExceptionRoutedEventArgs ^> ^ MediaFailed;
public event EventHandler<System.Windows.ExceptionRoutedEventArgs> MediaFailed;
member this.MediaFailed : EventHandler<System.Windows.ExceptionRoutedEventArgs> 
Public Custom Event MediaFailed As EventHandler(Of ExceptionRoutedEventArgs) 

事件類型

EventHandler<ExceptionRoutedEventArgs>

備註

路由事件資訊

識別碼欄位 MediaFailedEvent
路由策略 鼓 泡
代理人 EventHandler<TEventArgs>,其條件約束為 ExceptionRoutedEventArgs

適用於