ControllerBase.RedirectToRoutePermanent ControllerBase.RedirectToRoutePermanent ControllerBase.RedirectToRoutePermanent Method

Definition

Overloads

RedirectToRoutePermanent(Object) RedirectToRoutePermanent(Object) RedirectToRoutePermanent(Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeValues.

RedirectToRoutePermanent(String) RedirectToRoutePermanent(String) RedirectToRoutePermanent(String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName.

RedirectToRoutePermanent(String, Object) RedirectToRoutePermanent(String, Object) RedirectToRoutePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and routeValues.

RedirectToRoutePermanent(String, String) RedirectToRoutePermanent(String, String) RedirectToRoutePermanent(String, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and fragment.

RedirectToRoutePermanent(String, Object, String) RedirectToRoutePermanent(String, Object, String) RedirectToRoutePermanent(String, Object, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName, routeValues, and fragment.

RedirectToRoutePermanent(Object) RedirectToRoutePermanent(Object) RedirectToRoutePermanent(Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeValues.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (object routeValues);
abstract member RedirectToRoutePermanent : obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanent (routeValues As Object) As RedirectToRouteResult

Parameters

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToRoutePermanent(String) RedirectToRoutePermanent(String) RedirectToRoutePermanent(String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName);
abstract member RedirectToRoutePermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanent (routeName As String) As RedirectToRouteResult

Parameters

routeName
String String String

The name of the route.

Returns

RedirectToRoutePermanent(String, Object) RedirectToRoutePermanent(String, Object) RedirectToRoutePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and routeValues.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues);
abstract member RedirectToRoutePermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : string * obj -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanent (routeName As String, routeValues As Object) As RedirectToRouteResult

Parameters

routeName
String String String

The name of the route.

routeValues
Object Object Object

The parameters for a route.

Returns

RedirectToRoutePermanent(String, String) RedirectToRoutePermanent(String, String) RedirectToRoutePermanent(String, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and fragment.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, string fragment);
abstract member RedirectToRoutePermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : string * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanent (routeName As String, fragment As String) As RedirectToRouteResult

Parameters

routeName
String String String

The name of the route.

fragment
String String String

The fragment to add to the URL.

Returns

RedirectToRoutePermanent(String, Object, String) RedirectToRoutePermanent(String, Object, String) RedirectToRoutePermanent(String, Object, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName, routeValues, and fragment.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues, string fragment);
abstract member RedirectToRoutePermanent : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanent : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanent (routeName As String, routeValues As Object, fragment As String) As RedirectToRouteResult

Parameters

routeName
String String String

The name of the route.

routeValues
Object Object Object

The parameters for a route.

fragment
String String String

The fragment to add to the URL.

Returns

Applies to