共用方式為


LoginNameDesigner.GetErrorDesignTimeHtml(Exception) 方法

定義

在設計階段發生錯誤時,提供用來呈現關聯控制項的標記。

protected:
 override System::String ^ GetErrorDesignTimeHtml(Exception ^ e);
protected override string GetErrorDesignTimeHtml (Exception e);
override this.GetErrorDesignTimeHtml : Exception -> string
Protected Overrides Function GetErrorDesignTimeHtml (e As Exception) As String

參數

e
Exception

擲回的是 Exception

傳回

String

包含標記的字串,此標記可用來在設計階段發生錯誤之後呈現關聯的 LoginName

備註

如果嘗試顯示控制項的設計階段視圖時發生錯誤 LoginName ,這個方法會傳回 HTML 標籤,以顯示包含類型名稱、控制項名稱,以及一或多個描述錯誤的訊息的預留位置。

適用於

另請參閱