Creates HTML markup to display a specified error message at design time.
Assembly: System.Design (in System.Design.dll)
Protected Function CreateErrorDesignTimeHtml ( _
errorMessage As [%$TOPIC/ca41syc6_en-us_VS_110_1_0_0_0_0%] _
) As [%$TOPIC/ca41syc6_en-us_VS_110_1_0_0_0_1%]
protected [%$TOPIC/ca41syc6_en-us_VS_110_1_0_1_0_0%] CreateErrorDesignTimeHtml(
[%$TOPIC/ca41syc6_en-us_VS_110_1_0_1_0_1%] errorMessage
)
protected:
[%$TOPIC/ca41syc6_en-us_VS_110_1_0_2_0_0%]^ CreateErrorDesignTimeHtml(
[%$TOPIC/ca41syc6_en-us_VS_110_1_0_2_0_1%]^ errorMessage
)
member CreateErrorDesignTimeHtml :
errorMessage:[%$TOPIC/ca41syc6_en-us_VS_110_1_0_3_0_0%] -> [%$TOPIC/ca41syc6_en-us_VS_110_1_0_3_0_1%]
Parameters
- errorMessage
- Type:
SystemString
The error message to include in the generated HTML markup.
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.
Notes to InheritorsThe CreateErrorDesignTimeHtml(String) overload is functionally equivalent to calling the CreateErrorDesignTimeHtml(String, Exception) method with e set to .
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.