共用方式為


ControllerBase.LocalRedirect(String) 方法

定義

建立 LocalRedirectResult 物件,將 (Status302Found) 重新導向至指定的本機 localUrl

public:
 virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirect(System::String ^ localUrl);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect (string localUrl);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirect (localUrl As String) As LocalRedirectResult

參數

localUrl
String

要重新導向至的本機 URL。

傳回

為回應建立 LocalRedirectResult 的 。

屬性

適用於