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

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

DataGridDesigner.GetErrorDesignTimeHtml メソッド

デザイン時において、コントロール表示中にエラーが発生した場合指定した例外表示する 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 メソッドオーバーライドして、例外発生したときにデザイン サーフェイス上の DataGrid コントロール外観変更する方法次のコード例示します

このコード例は、DataGridDesigner クラストピック取り上げているコード例一部分です。

Protected Overrides Function
 GetEmptyDesignTimeHtml() As String
    Dim emptyText As String

    ' Check the CanEnterTemplateMode property to
    ' specify which text to display if ItemTemplate 
    ' does not contain a value.
    If CanEnterTemplateMode Then
        emptyText = _
            "<b>Either the Enabled property value is false
 " + _
            "or you need to set the ItemTemplate for this "
 + _
            "control.<br>Right-click to edit templates.</b>"
    Else
        emptyText = _
            "<b>You cannot edit templates in this view.<br>"
 + _
            "Switch to HTML view to define the ItemTemplate.</b>"
    End If

    Return CreatePlaceHolderDesignTimeHtml(emptyText)
End Function
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS