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 は変更されません。

適用対象