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.
public protected: 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::RedirectToRouteResult^A 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.
public protected: 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::RedirectToRouteResult^A redirect to route result (302 Found) with the specified values.
Show:
