UnhandledExceptionEventHandler Delegat

Definicja

Reprezentuje metodę, która obsłuży zdarzenie zgłoszone przez wyjątek, który nie jest obsługiwany przez domenę aplikacji.

public delegate void UnhandledExceptionEventHandler(System::Object ^ sender, UnhandledExceptionEventArgs ^ e);
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
[System.Serializable]
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public delegate void UnhandledExceptionEventHandler(object sender, UnhandledExceptionEventArgs e);
type UnhandledExceptionEventHandler = delegate of obj * UnhandledExceptionEventArgs -> unit
[<System.Serializable>]
type UnhandledExceptionEventHandler = delegate of obj * UnhandledExceptionEventArgs -> unit
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type UnhandledExceptionEventHandler = delegate of obj * UnhandledExceptionEventArgs -> unit
Public Delegate Sub UnhandledExceptionEventHandler(sender As Object, e As UnhandledExceptionEventArgs)

Parametry

sender
Object

Źródło nieobsługiwanego zdarzenia wyjątku.

e
UnhandledExceptionEventArgs

Element UnhandledExceptionEventArgs zawierający dane zdarzenia.

Atrybuty

Uwagi

Można UnhandledExceptionEventHandler określić tylko dla domyślnej domeny aplikacji utworzonej przez system w celu wykonania aplikacji. Określanie elementu UnhandledExceptionEventHandler utworzonego AppDomain przez aplikację nie ma wpływu.

Podczas tworzenia delegata należy zidentyfikować metodę UnhandledExceptionEventHandler , która będzie obsługiwać zdarzenie. Aby skojarzyć procedurę obsługi zdarzeń ze zdarzeniem, dodaj wystąpienie delegata do zdarzenia. Program obsługi zdarzeń jest wywoływany przy każdym wystąpieniu zdarzenia, o ile nie usunięto delegata. Aby uzyskać więcej informacji na temat delegatów programu obsługi zdarzeń, zobacz Obsługa i podnoszenie zdarzeń.

Metody rozszerzania

GetMethodInfo(Delegate)

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

Dotyczy

Zobacz też