PageModel.Redirect(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.