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);
member this.RedirectToRoutePermanent : obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoutePermanent (routeValues As Object) As RedirectToRouteResult

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);
member this.RedirectToRoutePermanent : string -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoutePermanent (routeName As String) As RedirectToRouteResult

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);
member this.RedirectToRoutePermanent : System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoutePermanent (routeValues As RouteValueDictionary) As RedirectToRouteResult

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);
member this.RedirectToRoutePermanent : string * obj -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Function RedirectToRoutePermanent (routeName As String, routeValues As Object) As RedirectToRouteResult

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);
abstract member RedirectToRoutePermanent : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.RedirectToRouteResult
Protected Friend Overridable Function RedirectToRoutePermanent (routeName As String, routeValues As RouteValueDictionary) As RedirectToRouteResult

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