WebFormsRootDesigner.GenerateErrorDesignTimeHtml 方法

定义

使用指定的控件、异常和消息生成用于在设计时显示错误消息的 HTML 标记。

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 标记。

适用于

另请参阅