Controller.Redirect(String) Method

Definition

Creates a RedirectResult object that redirects to the specified URL.

protected internal virtual System.Web.Mvc.RedirectResult Redirect (string url);
abstract member Redirect : string -> System.Web.Mvc.RedirectResult
override this.Redirect : string -> System.Web.Mvc.RedirectResult
Protected Friend Overridable Function Redirect (url As String) As RedirectResult

Parameters

url
String

The URL to redirect to.

Returns

The redirect result object.

Applies to