UnhandledExceptionEventHandler 代理人

定義

アプリケーション ドメインで処理されない例外によって発生したイベントを処理するメソッドを表します。

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)

パラメーター

sender
Object

ハンドルされない例外イベントのソース。

e
UnhandledExceptionEventArgs

イベント データを含む UnhandledExceptionEventArgs

属性

注釈

UnhandledExceptionEventHandlerは、アプリケーションを実行するためにシステムによって作成される既定のアプリケーション ドメインに対してのみ指定できます。 アプリケーションによって作成されたUnhandledExceptionEventHandlerAppDomainを指定しても効果はありません。

UnhandledExceptionEventHandler デリゲートを作成するときは、イベントを処理するメソッドを識別します。 イベント ハンドラーをイベントに関連付けるには、デリゲートのインスタンスをイベントに追加します。 デリゲートを削除しない限り、イベントが発生するたびにイベント ハンドラーが呼び出されます。 イベント ハンドラー デリゲートの詳細については、「イベントの 処理と発生」を参照してください。

拡張メソッド

名前 説明
GetMethodInfo(Delegate)

指定したデリゲートによって表されるメソッドを表すオブジェクトを取得します。

適用対象

こちらもご覧ください