Applies special error style attributes to an ErrorWebPart object that is inserted into a page in place of another control.
Assembly: System.Web (in System.Web.dll)
The method takes the style characteristics (if any) that are defined in the ErrorStyle object for the WebZone zone that contains an ErrorWebPart control. The styles are applied to the ErrorWebPart control prior to rendering.Notes to Inheritors
To require the WebPartManager control to use a custom ErrorWebPart control, you must also inherit from the WebPartManager class and override its CreateErrorWebPart method. In that method, you should assign the value of the method's errorMessage parameter to the ErrorMessage property of your custom ErrorWebPart control, because the WebPartManager control calls this method from several other places, and usually passes in a specific error message.
Windows 8.1, Windows Server 2012 R2, 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.