Share via


Controller.RedirectToRoutePermanent Method

Definition

Overloads

RedirectToRoutePermanent(Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

RedirectToRoutePermanent(String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

RedirectToRoutePermanent(RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

RedirectToRoutePermanent(String, Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

RedirectToRoutePermanent(String, RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

RedirectToRoutePermanent(Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoutePermanent(object routeValues);

Parameters

routeValues
Object

The route name.

Returns

Returns an instance of the RedirectResult class with the Permanent property set to true.

Applies to

RedirectToRoutePermanent(String)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName);

Parameters

routeName
String

The route name.

Returns

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name.

Applies to

RedirectToRoutePermanent(RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoutePermanent(System.Web.Routing.RouteValueDictionary routeValues);

Parameters

routeValues
RouteValueDictionary

The route values.

Returns

An instance of the RedirectResult class with the Permanent property set to true using the specified route values.

Applies to

RedirectToRoutePermanent(String, Object)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

protected internal System.Web.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, object routeValues);

Parameters

routeName
String

The route name.

routeValues
Object

The route values.

Returns

An instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

Applies to

RedirectToRoutePermanent(String, RouteValueDictionary)

Returns an instance of the RedirectResult class with the Permanent property set to true using the specified route name and route values.

protected internal virtual System.Web.Mvc.RedirectToRouteResult RedirectToRoutePermanent(string routeName, System.Web.Routing.RouteValueDictionary routeValues);

Parameters

routeName
String

The route name.

routeValues
RouteValueDictionary

The route values.

Returns

An instance of the RedirectResult class with the Permanent property set to true.

Applies to