Dispatcher.UnhandledException 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
대리자를 실행하는 Invoke 동안 스레드 예외가 throw되고 catch되지 않은 경우 발생합니다 BeginInvoke.
public:
event System::Windows::Threading::DispatcherUnhandledExceptionEventHandler ^ UnhandledException;
public event System.Windows.Threading.DispatcherUnhandledExceptionEventHandler UnhandledException;
member this.UnhandledException : System.Windows.Threading.DispatcherUnhandledExceptionEventHandler
Public Custom Event UnhandledException As DispatcherUnhandledExceptionEventHandler
Public Event UnhandledException As DispatcherUnhandledExceptionEventHandler
이벤트 유형
설명
이 이벤트는 대리 Invoke 자를 실행하는 동안 throw되었거나 BeginInvoke catch되지 않은 예외가 발생할 때 발생합니다.
처리기는 예외를 처리된 것으로 표시하여 내부 예외 처리기가 호출되지 않도록 할 수 있습니다.
이 이벤트에 대한 이벤트 처리기는 보조 예외를 만들지 않도록 하고 발생하는 모든 예외를 catch하기 위해 주의하여 작성해야 합니다. 메모리를 할당하거나 처리기에서 리소스 집약적인 작업을 수행하지 않는 것이 좋습니다.
이 UnhandledExceptionFilter 이벤트는 이벤트를 발생 UnhandledException 시키지 않는 수단을 제공합니다.
UnhandledExceptionFilter 이벤트가 먼저 발생하고, 이벤트가 설정 RequestCatchDispatcherUnhandledExceptionFilterEventArgs 되면 falseUnhandledException 이벤트가 발생하지 않습니다.