PageModel.RedirectPermanentPreserveMethod(String) 方法

定义

使用指定的 url创建一个RedirectResult对象Permanent,并将 设置为 true PreserveMethod (Status308PermanentRedirect) 。

public:
 virtual Microsoft::AspNetCore::Mvc::RedirectResult ^ RedirectPermanentPreserveMethod(System::String ^ url);
public virtual Microsoft.AspNetCore.Mvc.RedirectResult RedirectPermanentPreserveMethod (string url);
abstract member RedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.RedirectResult
override this.RedirectPermanentPreserveMethod : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Public Overridable Function RedirectPermanentPreserveMethod (url As String) As RedirectResult

参数

url
String

要重定向到的 URL。

返回

为响应创建的 RedirectResult

适用于