HttpResponseBase.RedirectToRoutePermanent 方法

定義

使用路由參數值及/或路由名稱,執行從要求之 URL 至新的 URL 的永久重新導向。Performs a permanent redirection from the requested URL to a new URL by using route parameter values, a route name, or both.

多載

RedirectToRoutePermanent(String, Object)

使用路由參數值以及對應到新 URL 的路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using the route parameter values and the name of the route that correspond to the new URL.

RedirectToRoutePermanent(Object)

使用路由參數值,執行從要求之 URL 至新的 URL 的永久重新導向。Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

RedirectToRoutePermanent(String)

使用路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using a route name.

RedirectToRoutePermanent(RouteValueDictionary)

使用路由參數值,執行從要求之 URL 至新的 URL 的永久重新導向。Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

RedirectToRoutePermanent(String, RouteValueDictionary)

使用路由參數值及路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using route parameter values and a route name.

RedirectToRoutePermanent(String, Object)

使用路由參數值以及對應到新 URL 的路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using the route parameter values and the name of the route that correspond to the new URL.

public:
 virtual void RedirectToRoutePermanent(System::String ^ routeName, System::Object ^ routeValues);
public virtual void RedirectToRoutePermanent (string routeName, object routeValues);
abstract member RedirectToRoutePermanent : string * obj -> unit
override this.RedirectToRoutePermanent : string * obj -> unit
Public Overridable Sub RedirectToRoutePermanent (routeName As String, routeValues As Object)

參數

routeName
String

路由的名稱。The name of the route.

routeValues
Object

路由參數值。The route parameter values.

例外狀況

永遠。Always.

備註

如需這個成員的詳細資訊,請參閱 HttpResponse.RedirectToRoutePermanent(String, Object)For information about this member, see HttpResponse.RedirectToRoutePermanent(String, Object).

適用於

RedirectToRoutePermanent(Object)

使用路由參數值,執行從要求之 URL 至新的 URL 的永久重新導向。Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

public:
 virtual void RedirectToRoutePermanent(System::Object ^ routeValues);
public virtual void RedirectToRoutePermanent (object routeValues);
abstract member RedirectToRoutePermanent : obj -> unit
override this.RedirectToRoutePermanent : obj -> unit
Public Overridable Sub RedirectToRoutePermanent (routeValues As Object)

參數

routeValues
Object

路由參數值。The route parameter values.

例外狀況

永遠。Always.

備註

如需這個成員的詳細資訊,請參閱 HttpResponse.RedirectToRoutePermanent(Object)For information about this member, see HttpResponse.RedirectToRoutePermanent(Object).

適用於

RedirectToRoutePermanent(String)

使用路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using a route name.

public:
 virtual void RedirectToRoutePermanent(System::String ^ routeName);
public virtual void RedirectToRoutePermanent (string routeName);
abstract member RedirectToRoutePermanent : string -> unit
override this.RedirectToRoutePermanent : string -> unit
Public Overridable Sub RedirectToRoutePermanent (routeName As String)

參數

routeName
String

路由的名稱。The name of the route.

例外狀況

永遠。Always.

備註

如需這個成員的詳細資訊,請參閱 HttpResponse.RedirectToRoutePermanent(String)For information about this member, see HttpResponse.RedirectToRoutePermanent(String).

適用於

RedirectToRoutePermanent(RouteValueDictionary)

使用路由參數值,執行從要求之 URL 至新的 URL 的永久重新導向。Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

public:
 virtual void RedirectToRoutePermanent(System::Web::Routing::RouteValueDictionary ^ routeValues);
public virtual void RedirectToRoutePermanent (System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToRoutePermanent : System.Web.Routing.RouteValueDictionary -> unit
override this.RedirectToRoutePermanent : System.Web.Routing.RouteValueDictionary -> unit
Public Overridable Sub RedirectToRoutePermanent (routeValues As RouteValueDictionary)

參數

routeValues
RouteValueDictionary

路由參數值。The route parameter values.

例外狀況

永遠。Always.

備註

如需這個成員的詳細資訊,請參閱 HttpResponse.RedirectToRoutePermanent(RouteValueDictionary)For information about this member, see HttpResponse.RedirectToRoutePermanent(RouteValueDictionary).

適用於

RedirectToRoutePermanent(String, RouteValueDictionary)

使用路由參數值及路由名稱,執行永遠從要求的 URL 重新導向至新的 URL。Performs a permanent redirection from the requested URL to a new URL by using route parameter values and a route name.

public:
 virtual void RedirectToRoutePermanent(System::String ^ routeName, System::Web::Routing::RouteValueDictionary ^ routeValues);
public virtual void RedirectToRoutePermanent (string routeName, System.Web.Routing.RouteValueDictionary routeValues);
abstract member RedirectToRoutePermanent : string * System.Web.Routing.RouteValueDictionary -> unit
override this.RedirectToRoutePermanent : string * System.Web.Routing.RouteValueDictionary -> unit
Public Overridable Sub RedirectToRoutePermanent (routeName As String, routeValues As RouteValueDictionary)

參數

routeName
String

路由的名稱。The name of the route.

routeValues
RouteValueDictionary

路由參數值。The route parameter values.

例外狀況

永遠。Always.

備註

如需這個成員的詳細資訊,請參閱 HttpResponse.RedirectToRoutePermanent(String, RouteValueDictionary)For information about this member, see HttpResponse.RedirectToRoutePermanent(String, RouteValueDictionary).

適用於