ControllerBase.LocalRedirectPermanent(String) ControllerBase.LocalRedirectPermanent(String) ControllerBase.LocalRedirectPermanent(String) Method

Definition

Creates a LocalRedirectResult object with Permanent set to true (Status301MovedPermanently) using the specified localUrl.

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

Parameters

localUrl
String String String

The local URL to redirect to.

Returns

Applies to