ApiController.Redirect 方法

定义

重载

Redirect(Uri)

使用 RedirectResult 指定值创建 (302 Found) 。

Redirect(String)

使用 RedirectResult 指定值创建 (302 Found) 。

Redirect(Uri)

Source:
ApiController.cs
Source:
ApiController.cs

使用 RedirectResult 指定值创建 (302 Found) 。

[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具有指定值的 。

属性

适用于

Redirect(String)

Source:
ApiController.cs
Source:
ApiController.cs

使用 RedirectResult 指定值创建 (302 Found) 。

[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具有指定值的 。

属性

适用于