ControllerBase.RedirectPermanent(String) Method

Definition

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

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

The URL to redirect to.

Returns

RedirectResult

The created RedirectResult for the response.

Attributes

Applies to