共用方式為


MediaPlayer.MediaFailed 事件

定義

遇到錯誤時發生。

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

事件類型

備註

XAML Attribute Usage

<object MediaFailed="EventHandler"/>  

適用於