System.Web.Configuration.CustomErrorsSection Class

Configures the ASP.NET custom errors. This class cannot be inherited.

See Also: CustomErrorsSection Members


public sealed class CustomErrorsSection : System.Configuration.ConfigurationSection


The System.Web.Configuration.CustomErrorsSection class provides a way to programmatically access and modify the customErrors section of a configuration file. This type is part of a group that includes the System.Web.Configuration.CustomErrorCollection, System.Web.Configuration.CustomErrorsMode, and System.Web.Configuration.CustomError types.


The System.Web.Configuration.CustomErrorsSection can read and write information from and to the related section of the configuration file according to the section property System.Configuration.SectionInformation.AllowDefinition whose value is System.Configuration.ConfigurationAllowDefinition.Everywhere.


Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0