ControllerBase.RedirectPermanent(String) ControllerBase.RedirectPermanent(String) ControllerBase.RedirectPermanent(String) Method

Definition

Creates a RedirectResult object with Permanent set to true (Status301MovedPermanently) using the specified url.

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

Parameters

url
String String String

The URL to redirect to.

Returns

Applies to