ControllerBase.RedirectPermanentPreserveMethod(String) 方法

定義

RedirectResult使用指定的 url 建立 物件, Permanent 並將 設定為 true,並將 PreserveMethod 設定為 true (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 的 。

屬性

適用於