ControllerBase.RedirectToRoutePermanentPreserveMethod 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.
Redirects (Status308PermanentRedirect) to the specified route with
Permanent set to true and PreserveMethod
set to true, using the specified routeName
, routeValues
, and fragment
.
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod (string routeName = default, object routeValues = default, string fragment = default);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.RedirectToRouteResult RedirectToRoutePermanentPreserveMethod (string? routeName = default, object? routeValues = default, string? fragment = default);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member RedirectToRoutePermanentPreserveMethod : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
override this.RedirectToRoutePermanentPreserveMethod : string * obj * string -> Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Public Overridable Function RedirectToRoutePermanentPreserveMethod (Optional routeName As String = Nothing, Optional routeValues As Object = Nothing, Optional fragment As String = Nothing) As RedirectToRouteResult
Parameters
- routeName
- String
The name of the route.
- routeValues
- Object
The route data to use for generating the URL.
- fragment
- String
The fragment to add to the URL.
Returns
The created RedirectToRouteResult 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: