IPageAdapter.HandleError(Exception, HtmlTextWriter) 方法

定义

如果处理错误,则返回 trueReturns true if it handles the error. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with 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

系统异常事件。System exception event.

writer
HtmlTextWriter

HtmlTextWriter 对象。The HtmlTextWriter object.

返回

Boolean

如果页适配器处理该错误,则为 true;否则为 falsetrue if the page adapter handles the error; otherwise, false.

注解

如果在页的生命周期中发生未处理的异常,则调用此方法。This method is called if an unhandled exception occurs during the life cycle of the page.

适用于