WebZone.ErrorStyle 属性
定义
public:
property System::Web::UI::WebControls::Style ^ ErrorStyle { System::Web::UI::WebControls::Style ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.Style ErrorStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.ErrorStyle : System.Web.UI.WebControls.Style
Public ReadOnly Property ErrorStyle As Style
属性值
包含该错误消息的样式特性的 Style。A Style that contains style attributes for the error message.
- 属性
注解
在运行时,如果 .NET Framework 无法加载或创建控件的实例 WebPart ,将 ErrorWebPart 创建类的实例并将其显示在其位置。At run time, if the .NET Framework is unable to load or create an instance of a WebPart control, an instance of the ErrorWebPart class is created and displayed in its place. 此对象包含一条错误消息,并且属性中的样式属性 ErrorStyle 将应用于错误消息。This object contains an error message, and the style attributes from the ErrorStyle property are applied to the error message.