Dispatcher.UnhandledExceptionFilter 이벤트
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
필터 단계에서 Invoke 또는 BeginInvoke를 통해 대리자를 실행하는 동안 스레드 예외가 throw되고 catch되지 않으면 발생합니다.
public:
event System::Windows::Threading::DispatcherUnhandledExceptionFilterEventHandler ^ UnhandledExceptionFilter;
[add: System.Security.SecurityCritical]
[remove: System.Security.SecurityCritical]
public event System.Windows.Threading.DispatcherUnhandledExceptionFilterEventHandler UnhandledExceptionFilter;
public event System.Windows.Threading.DispatcherUnhandledExceptionFilterEventHandler UnhandledExceptionFilter;
[<add: System.Security.SecurityCritical>]
[<remove: System.Security.SecurityCritical>]
member this.UnhandledExceptionFilter : System.Windows.Threading.DispatcherUnhandledExceptionFilterEventHandler
member this.UnhandledExceptionFilter : System.Windows.Threading.DispatcherUnhandledExceptionFilterEventHandler
Public Custom Event UnhandledExceptionFilter As DispatcherUnhandledExceptionFilterEventHandler
이벤트 유형
- 특성
설명
이 이벤트는 또는 BeginInvoke 를 통해 Invoke 대리자를 실행하는 동안 발생하며 catch되지 않은 예외에 대해 필터 단계 중에 발생합니다.
호출 스택은 이 시점에서 해제되지 않습니다(첫 번째 예외).
이 이벤트에 대한 이벤트 처리기는 보조 예외를 만들지 않도록 주의하여 작성해야 합니다. 메모리를 할당하거나 처리기에서 리소스 집약적인 작업을 수행하지 않는 것이 좋습니다.
합니다 UnhandledExceptionFilter 이벤트 발생 시 키 지 하는 방법을 제공 합니다 UnhandledException 이벤트입니다. 합니다 UnhandledExceptionFilter 이벤트가 먼저 발생 경우 RequestCatch 에 DispatcherUnhandledExceptionFilterEventArgs 로 설정 되어 false
, UnhandledException 이벤트 발생 하지 것입니다.
적용 대상
추가 정보
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기