DispatcherUnhandledExceptionEventHandler Delegat

Definicja

Reprezentuje metodę, która będzie obsługiwać UnhandledException zdarzenie.

public delegate void DispatcherUnhandledExceptionEventHandler(System::Object ^ sender, DispatcherUnhandledExceptionEventArgs ^ e);
public delegate void DispatcherUnhandledExceptionEventHandler(object sender, DispatcherUnhandledExceptionEventArgs e);
type DispatcherUnhandledExceptionEventHandler = delegate of obj * DispatcherUnhandledExceptionEventArgs -> unit
Public Delegate Sub DispatcherUnhandledExceptionEventHandler(sender As Object, e As DispatcherUnhandledExceptionEventArgs)

Parametry

sender
Object

Źródło zdarzenia.

e
DispatcherUnhandledExceptionEventArgs

Dane dotyczące zdarzenia.

Uwagi

Zdarzenie UnhandledException występuje, gdy kod wykonywany za pomocą Dispatcher metody zgłasza wyjątek, który nie jest obsługiwany.

Zdarzenie UnhandledExceptionFilter zapewnia sposób, aby nie zgłaszać UnhandledException zdarzenia. Zdarzenie UnhandledExceptionFilter jest zgłaszane jako pierwsze, a jeśli RequestCatch na obiekcie DispatcherUnhandledExceptionFilterEventArgs ustawiono wartość false, UnhandledException zdarzenie nie zostanie zgłoszone.

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też