DispatcherUnhandledExceptionFilterEventArgs.RequestCatch Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.