XhtmlPageAdapter.HandleError(Exception, HtmlTextWriter) Metod

Definition

Anropas om ett ohanterat fel inträffar på sidan. Det här API:et är föråldrat. Information om hur du utvecklar ASP.NET mobila program finns i Mobile Apps & Webbplatser med ASP.NET.

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

Parametrar

e
Exception

Ett Exception objekt.

writer
HtmlTextWriter

Ett HtmlTextWriter objekt.

Returer

false.

Implementeringar

Kommentarer

Ett kort kan välja att hantera felet och visa ett felmeddelande. Klassen XhtmlPageAdapter gör ingenting och returnerar false.

Gäller för

Se även