Share via


CustomErrorsSection.AllowNestedErrors 属性

定义

获取或设置指示 ASP.NET 是否应在自定义错误页无法显示时显示泛型错误消息的值。

public:
 property bool AllowNestedErrors { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("allowNestedErrors", DefaultValue=false)]
public bool AllowNestedErrors { get; set; }
[<System.Configuration.ConfigurationProperty("allowNestedErrors", DefaultValue=false)>]
member this.AllowNestedErrors : bool with get, set
Public Property AllowNestedErrors As Boolean

属性值

如果自定义页面无法显示时应显示常见错误信息,则 true;否则,为 false。 默认值为 false

属性

适用于