CustomErrorsMode Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the values for the custom errors modality.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public enum class CustomErrorsMode

Member nameDescription
Off

Disables custom errors, allowing display of standard errors.

On

Enables custom errors. If no 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.

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

The following code example shows how to set the Mode property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: