ApiController.Redirect ApiController.Redirect ApiController.Redirect Method

Definition

Overloads

Redirect(Uri) Redirect(Uri) Redirect(Uri)

Creates a RedirectResult (302 Found) with the specified value.

Redirect(String) Redirect(String) Redirect(String)

Creates a RedirectResult (302 Found) with the specified value.

Redirect(Uri) Redirect(Uri) Redirect(Uri)

Creates a RedirectResult (302 Found) with the specified value.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect (Uri location);
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

Parameters

location
Uri Uri Uri

The location to which to redirect.

Returns

Redirect(String) Redirect(String) Redirect(String)

Creates a RedirectResult (302 Found) with the specified value.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect (string location);
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

Parameters

location
String String String

The location to which to redirect.

Returns

Applies to