The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ApiController.RedirectToRoute Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | RedirectToRoute(String, IDictionary<String, Object>) | Creates a redirect to route result (302 Found) with the specified values. |
![]() | RedirectToRoute(String, Object) | Creates a redirect to route result (302 Found) with the specified values. |
ApiController.RedirectToRoute Method (String, IDictionary<String, Object>)
Creates a redirect to route result (302 Found) with the specified values.
protected internal virtual RedirectToRouteResult RedirectToRoute( string routeName, IDictionary<string, object> routeValues )
Parameters
- routeName
-
Type:
System.String
The name of the route to use for generating the URL.
- routeValues
-
Type:
System.Collections.Generic.IDictionary<String, Object>
The route data to use for generating the URL.
Return Value
Type: System.Web.Http.Results.RedirectToRouteResultA redirect to route result (302 Found) with the specified values.
ApiController.RedirectToRoute Method (String, Object)
Creates a redirect to route result (302 Found) with the specified values.
protected internal RedirectToRouteResult RedirectToRoute( string routeName, object routeValues )
Parameters
- routeName
-
Type:
System.String
The name of the route to use for generating the URL.
- routeValues
-
Type:
System.Object
The route data to use for generating the URL.
Return Value
Type: System.Web.Http.Results.RedirectToRouteResultA redirect to route result (302 Found) with the specified values.
Show:
