語言

IPageAdapter.HandleError(Exception, HtmlTextWriter) 方法

定義

如果能處理錯誤,則回傳 true 。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱 Mobile Apps &ASP.NET 的網站。

public:
 bool HandleError(Exception ^ e, System::Web::UI::HtmlTextWriter ^ writer);
public bool HandleError(Exception e, System.Web.UI.HtmlTextWriter writer);
abstract member HandleError : Exception * System.Web.UI.HtmlTextWriter -> bool
Public Function HandleError (e As Exception, writer As HtmlTextWriter) As Boolean

參數

e
Exception

系統例外事件。

writer
HtmlTextWriter

HtmlTextWriter 物件。

傳回

true如果分頁介面卡能處理錯誤;否則,。 false

備註

當頁面生命週期中發生未處理異常時,會呼叫此方法。

適用於

另請參閱