Dispatcher.UnhandledExceptionFilter Evento

Definição

Ocorre quando uma exceção de thread é lançada e desapanhada durante a execução de um delegado através de Invoke , ou BeginInvoke quando está na fase de filtro.

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 

Tipo de Evento

Atributos

Observações

Este evento é levantado durante a fase de filtro para uma exceção que é levantada durante a execução de um delegado por meio de Invoke ou BeginInvoke e é não capturado.

A pilha de chamadas não está desfeita neste ponto (exceção de primeira oportunidade).

Os gestores de eventos para este evento devem ser escritos com cuidado para evitar criar exceções secundárias e para detetar quaisquer que ocorram. Recomenda-se evitar alocar memória ou realizar operações intensivas em recursos no handler.

O UnhandledExceptionFilter evento serve para não elevar o UnhandledException evento. O UnhandledExceptionFilter evento é elevado primeiro, e se RequestCatch em for DispatcherUnhandledExceptionFilterEventArgs definido para false, o UnhandledException evento não será elevado.

Aplica-se a

Ver também