DispatcherUnhandledExceptionFilterEventArgs.RequestCatch 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定是否應攔截該例外並呼叫事件處理程序。
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
屬性值
true若 應該提高 ;UnhandledException否則; false 預設值為 true。
備註
這個 UnhandledExceptionFilter 事件提供了一個不讓事件升級 UnhandledException 的手段。 先提出事件 UnhandledException ,若 RequestCatch 在 上 DispatcherUnhandledExceptionFilterEventArgs 設定為 false, UnhandledException 則事件不會被提出。
事件多播中先前的處理程序可能已將此屬性設為 false,表示該例外不會被捕捉。 「不抓」行為會覆蓋所有其他行為,因為很可能代表除錯情境。