ApiController.Redirect 方法

定義

多載

Redirect(Uri)

RedirectResult使用指定的值,建立) 找到的 (302。

Redirect(String)

RedirectResult使用指定的值,建立) 找到的 (302。

Redirect(Uri)

RedirectResult使用指定的值,建立) 找到的 (302。

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect (Uri location);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Redirect : Uri -> Microsoft.AspNetCore.Mvc.RedirectResult
override this.Redirect : Uri -> Microsoft.AspNetCore.Mvc.RedirectResult
Public Overridable Function Redirect (location As Uri) As RedirectResult

參數

location
Uri

要重新導向的位置。

傳回

RedirectResult

RedirectResult具有指定值的。

屬性

適用於

Redirect(String)

RedirectResult使用指定的值,建立) 找到的 (302。

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect (string location);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
override this.Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Public Overridable Function Redirect (location As String) As RedirectResult

參數

location
String

要重新導向的位置。

傳回

RedirectResult

RedirectResult具有指定值的。

屬性

適用於