다음을 통해 공유


CustomErrorsSection.RedirectMode 속성

정의

사용자가 사용자 지정 오류 페이지로 리디렉션될 때 요청의 URL을 변경해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

public:
 property System::Web::Configuration::CustomErrorsRedirectMode RedirectMode { System::Web::Configuration::CustomErrorsRedirectMode get(); void set(System::Web::Configuration::CustomErrorsRedirectMode value); };
[System.Configuration.ConfigurationProperty("redirectMode", DefaultValue=System.Web.Configuration.CustomErrorsRedirectMode.ResponseRedirect)]
public System.Web.Configuration.CustomErrorsRedirectMode RedirectMode { get; set; }
[<System.Configuration.ConfigurationProperty("redirectMode", DefaultValue=System.Web.Configuration.CustomErrorsRedirectMode.ResponseRedirect)>]
member this.RedirectMode : System.Web.Configuration.CustomErrorsRedirectMode with get, set
Public Property RedirectMode As CustomErrorsRedirectMode

속성 값

사용자가 사용자 지정 오류 페이지로 리디렉션될 때 URL이 변경되는지 여부를 나타내는 값입니다. 기본값은 ResponseRedirect입니다.

특성

설명

RedirectMode 속성을 설정ResponseRedirect하면 사용자가 오류 페이지로 리디렉션되고 원래 URL이 오류 페이지의 URL로 변경됩니다. RedirectMode 속성을 설정ResponseRewrite하면 사용자가 오류 페이지로 전송되고 브라우저의 원래 URL은 변경되지 않습니다.

적용 대상