ControllerBase.RedirectToRoutePermanent Method

Definition

Overloads

RedirectToRoutePermanent(String, Object, String)

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

RedirectToRoutePermanent(String, String)

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

RedirectToRoutePermanent(Object)

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

RedirectToRoutePermanent(String)

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

RedirectToRoutePermanent(String, Object)

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

RedirectToRoutePermanent(String, Object, String)

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoutePermanent(System::String ^ routeName, System::Object ^ routeValues, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues, string fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The name of the route.

routeValues
Object

The parameters for a route.

fragment
String

The fragment to add to the URL.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to

RedirectToRoutePermanent(String, String)

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoutePermanent(System::String ^ routeName, System::String ^ fragment);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, string fragment);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The name of the route.

fragment
String

The fragment to add to the URL.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to

RedirectToRoutePermanent(Object)

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoutePermanent(System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (object routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The parameters for a route.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to

RedirectToRoutePermanent(String)

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoutePermanent(System::String ^ routeName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The name of the route.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to

RedirectToRoutePermanent(String, Object)

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

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectToRouteResult ^ RedirectToRoutePermanent(System::String ^ routeName, System::Object ^ routeValues);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

The name of the route.

routeValues
Object

The parameters for a route.

Returns

RedirectToRouteResult

The created RedirectToRouteResult for the response.

Attributes

Applies to