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.

注解

如果在页面生命周期内发生未经处理的异常,则调用此方法。

适用于

另请参阅