PageModel.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(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, String)

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

RedirectToRoutePermanent(String, Object, String)

Source:
PageModel.cs
Source:
PageModel.cs

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);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues, string fragment);
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

The name of the route.

routeValues
Object

The parameters for a route.

fragment
String

The fragment to add to the URL.

Returns

The created RedirectToRouteResult for the response.

Applies to

RedirectToRoutePermanent(Object)

Source:
PageModel.cs
Source:
PageModel.cs

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);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (object routeValues);
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

The parameters for a route.

Returns

The created RedirectToRouteResult for the response.

Applies to

RedirectToRoutePermanent(String)

Source:
PageModel.cs
Source:
PageModel.cs

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);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName);
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

The name of the route.

Returns

The created RedirectToRouteResult for the response.

Applies to

RedirectToRoutePermanent(String, Object)

Source:
PageModel.cs
Source:
PageModel.cs

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);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, object routeValues);
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

The name of the route.

routeValues
Object

The parameters for a route.

Returns

The created RedirectToRouteResult for the response.

Applies to

RedirectToRoutePermanent(String, String)

Source:
PageModel.cs
Source:
PageModel.cs

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);
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanent (string routeName, string fragment);
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

The name of the route.

fragment
String

The fragment to add to the URL.

Returns

The created RedirectToRouteResult for the response.

Applies to