CreateUserWizardDesigner クラス
アセンブリ: System.Design (system.design.dll 内)
 構文
構文 解説
解説 使用例
使用例CreateUserWizardDesigner クラスを拡張し、エラーが発生した場合にデバッグ情報をデザイン サーフェイスに表示するコード例を次に示します。
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; } } }
前の例で定義したデザイナにコントロール クラスを関連付けるコード例を次に示します。
Imports System Imports System.IO Imports System.ComponentModel Imports System.Web.UI.WebControls Imports System.Web.UI Imports System.Web.UI.Design Imports System.Web.UI.Design.WebControls Imports Examples.WebNet Namespace Examples.WebNet ' Create a class that extends CreateUserWizard and uses ' MyCreateUserWizardDesigner as its designer. <Designer(GetType(Examples.WebNet.MyCreateUserWizardDesigner))> _ Public Class MyCreateUserWizard Inherits CreateUserWizard ' Put your own code here 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; namespace Examples.WebNet { // Create a class that extends CreateUserWizard and uses // MyCreateUserWizardDesigner as its designer. [Designer(typeof(Examples.WebNet.MyCreateUserWizardDesigner))] public class MyCreateUserWizard : CreateUserWizard { } }
 .NET Framework のセキュリティ
.NET Framework のセキュリティ- SecurityPermission (アンマネージ コードを呼び出すために必要なアクセス許可)。要求値 : Demand。アクセス許可値 : UnmanagedCode。
 継承階層
継承階層System.ComponentModel.Design.ComponentDesigner
System.Web.UI.Design.HtmlControlDesigner
System.Web.UI.Design.ControlDesigner
System.Web.UI.Design.WebControls.CompositeControlDesigner
System.Web.UI.Design.WebControls.WizardDesigner
System.Web.UI.Design.WebControls.CreateUserWizardDesigner
 スレッド セーフ
スレッド セーフ プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照- CreateUserWizardDesigner クラスのページへのリンク

 
                             
                    


