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.Redirect Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | Redirect(String) | Creates a redirect result (302 Found) with the specified value. |
![]() | Redirect(Uri) | Creates a redirect result (302 Found) with the specified value. |
ApiController.Redirect Method (String)
Creates a redirect result (302 Found) with the specified value.
Parameters
- location
-
Type:
System.String
The location to redirect to.
Return Value
Type: System.Web.Http.Results.RedirectResultA redirect result (302 Found) with the specified value.
ApiController.Redirect Method (Uri)
Creates a redirect result (302 Found) with the specified value.
Parameters
- location
-
Type:
System.Uri
The location to redirect to.
Return Value
Type: System.Web.Http.Results.RedirectResultA redirect result (302 Found) with the specified value.
Show:
