ControllerBase.RedirectPermanentPreserveMethod(String) 方法

定义

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

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

属性

适用于