WebFormsRootDesigner.GenerateErrorDesignTimeHtml 方法

定義

產生 HTML 標記,其可透過使用指定的控制項、例外狀況 (Exception) 和訊息在設計階段顯示錯誤訊息。

public:
 virtual System::String ^ GenerateErrorDesignTimeHtml(System::Web::UI::Control ^ control, Exception ^ e, System::String ^ errorMessage);
public virtual string GenerateErrorDesignTimeHtml (System.Web.UI.Control control, Exception e, string errorMessage);
abstract member GenerateErrorDesignTimeHtml : System.Web.UI.Control * Exception * string -> string
override this.GenerateErrorDesignTimeHtml : System.Web.UI.Control * Exception * string -> string
Public Overridable Function GenerateErrorDesignTimeHtml (control As Control, e As Exception, errorMessage As String) As String

參數

control
Control

引發例外狀況的控制項。

-或-

null.

e
Exception

例外狀況。

-或-

null.

errorMessage
String

要加入至例外狀況訊息的訊息。

-或-

空字串 ("")。

傳回

控制項和例外狀況資訊的 HTML 標記。

適用於

另請參閱