ControlDesigner.GetErrorDesignTimeHtml メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ControlDesigner.GetErrorDesignTimeHtml メソッドの意味・解説 

ControlDesigner.GetErrorDesignTimeHtml メソッド

指定され例外に関する情報提供する HTML マークアップ取得します

名前空間: System.Web.UI.Design
アセンブリ: System.Design (system.design.dll 内)
構文構文

Protected Overridable Function
 GetErrorDesignTimeHtml ( _
    e As Exception _
) As String
Dim e As Exception
Dim returnValue As String

returnValue = Me.GetErrorDesignTimeHtml(e)
protected virtual string GetErrorDesignTimeHtml
 (
    Exception e
)
protected:
virtual String^ GetErrorDesignTimeHtml (
    Exception^ e
)
protected String GetErrorDesignTimeHtml (
    Exception e
)
protected function GetErrorDesignTimeHtml (
    e : Exception
) : String

パラメータ

e

発生した例外

戻り値
指定され例外デザインHTML マークアップ

解説解説
使用例使用例

エラーが発生した場合コントロールデザインHTML マークアップ生成しCreatePlaceHolderDesignTimeHtml メソッド呼び出す方法コード例次に示します

' Generate the design-time markup for the control when an error occurs.
Protected Overrides Function
 GetErrorDesignTimeHtml( _
    ByVal ex As Exception) As
 String

    ' Write the error message text in red, bold.
    Dim errorRendering As String
 = _
        "<span style=""font-weight:bold;
 color:Red; "">" & _
        ex.Message & "</span>"

    Return CreatePlaceHolderDesignTimeHtml(errorRendering)

End Function ' GetErrorDesignTimeHtml
// Generate the design-time markup for the control when an error occurs.
protected override string GetErrorDesignTimeHtml(Exception
 e) 
{
    // Write the error message text in red, bold.
    string errorRendering =
        "<span style=\"font-weight:bold; color:Red; \">"
 +
        e.Message + "</span>";

    return CreatePlaceHolderDesignTimeHtml(errorRendering);
} // GetErrorDesignTimeHtml
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlDesigner クラス
ControlDesigner メンバ
System.Web.UI.Design 名前空間
GetDesignTimeHtml
CreateErrorDesignTimeHtml
その他の技術情報
Web フォームデザインサポート



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ControlDesigner.GetErrorDesignTimeHtml メソッド」の関連用語

ControlDesigner.GetErrorDesignTimeHtml メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ControlDesigner.GetErrorDesignTimeHtml メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS