PageModel.Redirect(String) Method

Definition

Creates a RedirectResult object that redirects (Status302Found) to the specified url.

protected public:
 Microsoft::AspNetCore::Mvc::RedirectResult ^ Redirect(System::String ^ url);
protected internal Microsoft.AspNetCore.Mvc.RedirectResult Redirect (string url);
member this.Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Protected Friend Function Redirect (url As String) As RedirectResult

Parameters

url
String

The URL to redirect to.

Returns

The created RedirectResult for the response.

Applies to