Dispatcher.UnhandledExceptionFilter イベント
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フィルター ステージで Invoke または BeginInvoke を使用して、デリゲートの実行中にスレッド例外がスローされ、キャッチされない場合に発生します。
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
イベントの種類
- 属性
注釈
このイベントは、 Invoke または BeginInvoke を使用してデリゲートの実行中に発生し、キャッチされない例外のフィルター ステージ中に発生します。
呼び出し履歴は、この時点では巻き戻されません (初回例外)。
このイベントのイベント ハンドラーは、セカンダリ例外の作成を回避し、発生した例外をキャッチするために注意して記述する必要があります。 メモリの割り当てや、ハンドラーでリソースを集中的に使用する操作を行わないようにすることをお勧めします。
UnhandledExceptionFilter イベントは、UnhandledException イベントを発生させないようにする手段を提供します。
UnhandledExceptionFilter イベントが最初に発生し、RequestCatchのDispatcherUnhandledExceptionFilterEventArgsが false に設定されている場合、UnhandledException イベントは発生しません。