ControllerBase.LocalRedirect(String) Method
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 LocalRedirectResult object that redirects
(Status302Found) to the specified local localUrl
.
public:
virtual Microsoft::AspNetCore::Mvc::LocalRedirectResult ^ LocalRedirect(System::String ^ localUrl);
C#
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect (string localUrl);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirect (localUrl As String) As LocalRedirectResult
- localUrl
- String
The local URL to redirect to.
The created LocalRedirectResult for the response.
- Attributes
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |