Creates HTML markup to display a specified error message at design time.
Protected Function CreateErrorDesignTimeHtml ( _ errorMessage As String _ ) As String
Dim errorMessage As String Dim returnValue As String returnValue = Me.CreateErrorDesignTimeHtml(errorMessage)
protected string CreateErrorDesignTimeHtml( string errorMessage )
protected: String^ CreateErrorDesignTimeHtml( String^ errorMessage )
protected function CreateErrorDesignTimeHtml( errorMessage : String ) : String
Use the CreateErrorDesignTimeHtml method to create HTML markup to display an error message for a control at design time. The value for errorMessage specifies a localized string that is displayed to the user of the control at design time.
The ControlDesigner class implementation of the CreateErrorDesignTimeHtml method returns a table with two rows, as follows:
The first row contains the type name and site name for the Component property of the ControlDesigner object.
The second row contains the input error message string.
To generate HTML markup for an error message with an associated exception, use the CreateErrorDesignTimeHtml(String, Exception) overload. To generate HTML markup for an exception without specifying a localized error message, use the GetErrorDesignTimeHtml method.
The CreateErrorDesignTimeHtml(String) overload is functionally equivalent to calling the CreateErrorDesignTimeHtml(String, Exception) method with e set to nullNothingnullptra null reference (Nothing in Visual Basic).
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98