ControllerBase.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
.
public:
virtual Microsoft::AspNetCore::Mvc::RedirectResult ^ Redirect(System::String ^ url);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectResult Redirect (string url);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
override this.Redirect : string -> Microsoft.AspNetCore.Mvc.RedirectResult
Public Overridable Function Redirect (url As String) As RedirectResult
Parameters
- url
- String
The URL to redirect to.
Returns
The created RedirectResult for the response.
- Attributes
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: