PageModel.LocalRedirectPermanent(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a LocalRedirectResult object with Permanent set to
true (Status301MovedPermanently) using the specified localUrl
.
public:
virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirectPermanent(System::String ^ localUrl);
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
The local URL to redirect to.
Returns
The created LocalRedirectResult for the response.