DispatcherUnhandledExceptionFilterEventArgs.RequestCatch Proprietà

Definizione

Ottiene o imposta un valore che indica se l'eccezione deve essere intercettata e i gestori eventi chiamati.

public:
 property bool RequestCatch { bool get(); void set(bool value); };
public bool RequestCatch { get; set; }
member this.RequestCatch : bool with get, set
Public Property RequestCatch As Boolean

Valore della proprietà

true se l'oggetto UnhandledException deve essere generato; in caso contrario, false. Il valore predefinito è true.

Commenti

L'evento UnhandledExceptionFilter fornisce un mezzo per non generare l'evento UnhandledException . Viene UnhandledException generato per primo e Se RequestCatch su DispatcherUnhandledExceptionFilterEventArgs è impostato su false, l'evento UnhandledException non verrà generato.

Un gestore precedente nel multicast eventi potrebbe avere già impostato questa proprietà su false, a indicare che l'eccezione non verrà intercettata. Il comportamento "don't catch" sostituirà tutti gli altri perché probabilmente significa uno scenario di debug.

Si applica a

Vedi anche