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) 

事件类型

EventHandler<ExceptionEventArgs>

注解

XAML 属性用法

<object MediaFailed="EventHandler"/>  

适用于