System.Web.Configuration.CustomErrorsMode Enumeration

Specifies the values for the custom errors modality.

Syntax

public enum CustomErrorsMode

Remarks

The System.Web.Configuration.CustomErrorsMode enumerates the values you can use when setting the CustomErrorsSection.Mode property. These values define whether custom errors are enabled, disabled, or shown only to remote clients.

Members

Member NameDescription
Off

Disables custom errors, allowing display of standard errors.

On

Enables custom errors. If no CustomErrorsSection.DefaultRedirect is specified, standard errors are issued.

RemoteOnly

Enables custom errors on remote clients only. Custom errors are shown only to remote clients and ASP.NET errors are shown to the local host.

Requirements

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