Edit

Share via


HttpResponseBase.RedirectToRoutePermanent Method

Definition

Performs a permanent redirection from the requested URL to a new URL by using route parameter values, a route name, or both.

Overloads

RedirectToRoutePermanent(String, Object)

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)

Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

RedirectToRoutePermanent(String)

Performs a permanent redirection from the requested URL to a new URL by using a route name.

RedirectToRoutePermanent(RouteValueDictionary)

Performs a permanent redirection from the requested URL to a new URL by using route parameter values.

RedirectToRoutePermanent(String, RouteValueDictionary)

Performs a permanent redirection from the requested URL to a new URL by using route parameter values and a route name.

RedirectToRoutePermanent(String, Object)

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)

Parameters

routeName
String

The name of the route.

routeValues
Object

The route parameter values.

Exceptions

Remarks

For information about this member, see HttpResponse.RedirectToRoutePermanent(String, Object).

Applies to

RedirectToRoutePermanent(Object)

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)

Parameters

routeValues
Object

The route parameter values.

Exceptions

Remarks

For information about this member, see HttpResponse.RedirectToRoutePermanent(Object).

Applies to

RedirectToRoutePermanent(String)

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)

Parameters

routeName
String

The name of the route.

Exceptions

Remarks

For information about this member, see HttpResponse.RedirectToRoutePermanent(String).

Applies to

RedirectToRoutePermanent(RouteValueDictionary)

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)

Parameters

routeValues
RouteValueDictionary

The route parameter values.

Exceptions

Remarks

For information about this member, see HttpResponse.RedirectToRoutePermanent(RouteValueDictionary).

Applies to

RedirectToRoutePermanent(String, RouteValueDictionary)

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)

Parameters

routeName
String

The name of the route.

routeValues
RouteValueDictionary

The route parameter values.

Exceptions

Remarks

For information about this member, see HttpResponse.RedirectToRoutePermanent(String, RouteValueDictionary).

Applies to