ExceptionRoutedEventArgs.ErrorException 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오류 조건을 발생시킨 예외를 가져옵니다.
public:
property Exception ^ ErrorException { Exception ^ get(); };
public Exception ErrorException { get; }
member this.ErrorException : Exception
Public ReadOnly Property ErrorException As Exception
속성 값
특정 오류 조건을 자세히 설명한 예외입니다.
예외
미디어 파일에 대한 액세스 시도가 거부되었습니다.
미디어 파일을 찾을 수 없습니다.
COM 오류 코드가 나타납니다.
예제
다음 예제에서는 간단한 이벤트 처리기를 ExceptionRoutedEventArgs만듭니다.
private void Media_MediaFailed(object sender, ExceptionRoutedEventArgs args)
{
MessageBox.Show(args.ErrorException.Message);
}
Private Sub Media_MediaFailed(ByVal sender As Object, ByVal args As ExceptionRoutedEventArgs)
If (True) Then
MessageBox.Show(args.ErrorException.Message)
End If
End Sub