PageModel.RedirectPermanent(String) 方法

定义

使用指定的创建一个 RedirectResult Permanent 设置为 true (Status301MovedPermanently) 的对象 url

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

参数

url
String

要重定向到的 URL。

返回

RedirectResult

RedirectResult为响应创建的。

适用于