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

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

CreateUserWizardDesigner.GetErrorDesignTimeHtml メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

指定され例外に関する情報提供する HTML取得します。このメソッド通常デザイン時にエラー発生した後に呼び出されます。

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

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

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

パラメータ

e

発生した例外

戻り値
指定され例外HTML

使用例使用例

GetErrorDesignTimeHtml メソッドオーバーライドし、エラーが発生した場合デバッグ情報デザイン サーフェイス表示するコード例次に示します

Imports System
Imports System.IO
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.Design.WebControls
Imports System.Web.UI.WebControls
Imports Examples.WebNet

Namespace Examples.WebNet
    ' Create a class that extends CreateUserWizardDesigner.
    Public Class MyCreateUserWizardDesigner
        Inherits CreateUserWizardDesigner

        ' This variable contains debugging information.
        Private debugInfo As String
 = "Useful information."

        ' Override the GetErrorDesignTimeHtml method to add some more
        ' information to the error message.
        Protected Overrides Function
 GetErrorDesignTimeHtml(ByVal e As Exception)
 As String
            ' Get the error message from the base class.
            Dim htmlStr As String
            htmlStr = MyBase.GetErrorDesignTimeHtml(e)

            ' Append the debugging information to it.
            htmlStr &= "<br>DebugInfo: "
 & debugInfo

            ' Return the error message.
            Return htmlStr
        End Function
    End Class

End Namespace
using System;
using System.IO;
using System.ComponentModel;
using System.Web.UI.WebControls;
using System.Web.UI;
using System.Web.UI.Design;
using System.Web.UI.Design.WebControls;
//using Examples.WebNet.Design;

namespace Examples.WebNet
{
    // Create a class that extends CreateUserWizardDesigner.
    public class MyCreateUserWizardDesigner
 : CreateUserWizardDesigner
    {
        // This variable contains debugging information.
        private string debugInfo = "Useful
 information.";
        
        // Override the GetErrorDesignTimeHtml method to add some more
        // information to the error message.
        protected override string GetErrorDesignTimeHtml(Exception
 e)
        {
            // Get the error message from the base class.
            string html = base.GetErrorDesignTimeHtml(e);
        
            // Append the debugging information to it.
            html += "<br>" + "DebugInfo: " + debugInfo;
        
            // Return the error message.
            return html;
        }
    }
}
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CreateUserWizardDesigner クラス
CreateUserWizardDesigner メンバ
System.Web.UI.Design.WebControls 名前空間
その他の技術情報
ASP.NET コントロール デザイナ概要
デザインサポート拡張


このページでは「.NET Framework クラス ライブラリ リファレンス」からCreateUserWizardDesigner.GetErrorDesignTimeHtml メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCreateUserWizardDesigner.GetErrorDesignTimeHtml メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCreateUserWizardDesigner.GetErrorDesignTimeHtml メソッド を検索

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS