PageModel.Redirect(String) 方法

定义

创建一个 RedirectResult 对象,该对象将) 重定向 Status302Found 到指定的 (url

protected public:
 Microsoft::AspNetCore::Mvc::RedirectResult ^ Redirect(System::String ^ url);
protected internal Microsoft.AspNetCore.Mvc.RedirectResult Redirect (string url);
member this.Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Protected Friend Function Redirect (url As String) As RedirectResult

参数

url
String

要重定向到的 URL。

返回

RedirectResult

RedirectResult为响应创建的。

适用于