CustomErrorsRedirectMode 枚举
定义
指定当显示自定义错误页面时,如何处理原始请求的 URL 的值。Specifies values for how the URL of the original request is handled when a custom error page is displayed.
public enum class CustomErrorsRedirectMode
public enum CustomErrorsRedirectMode
type CustomErrorsRedirectMode =
Public Enum CustomErrorsRedirectMode
- 继承
字段
ResponseRedirect | 0 | 显示错误页面并更改原始请求的 URL。Display the error page and change the URL of the original request. |
ResponseRewrite | 1 | 显示错误页面但不更改原始 URL。Display the error page without changing the original URL. |
注解
设置属性时CustomErrorsRedirectMode使用这些值。 RedirectModeYou use the CustomErrorsRedirectMode values when you set the RedirectMode property.