RedirectToRouteResult Class¶
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class RedirectToRouteResult : ActionResult, IKeepTempDataResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.RedirectToRouteResult
Constructors¶
-
RedirectToRouteResult(System.Object)¶ public RedirectToRouteResult(object routeValues)
-
RedirectToRouteResult(System.String, System.Object) public RedirectToRouteResult(string routeName, object routeValues)
-
RedirectToRouteResult(System.String, System.Object, System.Boolean) public RedirectToRouteResult(string routeName, object routeValues, bool permanent)
-
Methods¶
-
ExecuteResult(Microsoft.AspNetCore.Mvc.ActionContext)¶ public override void ExecuteResult(ActionContext context)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.RedirectToRouteResult.Permanent¶ Return type: System.Boolean public bool Permanent { get; set; }
-
Microsoft.AspNetCore.Mvc.RedirectToRouteResult.RouteName¶ Gets or sets the name of the route to use for generating the URL.
Return type: System.String public string RouteName { get; set; }
-
Microsoft.AspNetCore.Mvc.RedirectToRouteResult.RouteValues¶ Gets or sets the route data to use for generating the URL.
Return type: Microsoft.AspNetCore.Routing.RouteValueDictionary public RouteValueDictionary RouteValues { get; set; }
-
Microsoft.AspNetCore.Mvc.RedirectToRouteResult.UrlHelper¶ Gets or sets the
Microsoft.AspNetCore.Mvc.IUrlHelperused to generate URLs.Return type: Microsoft.AspNetCore.Mvc.IUrlHelper public IUrlHelper UrlHelper { get; set; }
-