Represents an action result that performs route generation and returns a <see cref="F:System.Net.HttpStatusCode.Redirect"/> response.
Namespace:   System.Web.Http.Results
Assembly:  System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
  System.Web.Http.Results.RedirectToRouteResult
Syntax
public class RedirectToRouteResult : IHttpActionResult
public ref class RedirectToRouteResult : IHttpActionResult
type RedirectToRouteResult = 
    class
        interface IHttpActionResult
    end
Public Class RedirectToRouteResult
    Implements IHttpActionResult
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | RedirectToRouteResult(String, IDictionary<String, Object>, ApiController) | Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectToRouteResult"/> class with the values provided. | 
| .jpeg) | RedirectToRouteResult(String, IDictionary<String, Object>, UrlHelper, HttpRequestMessage) | Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectToRouteResult"/> class with the values provided. | 
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Request | Gets the request message which led to this result. | 
| .jpeg) | RouteName | Gets the name of the route to use for generating the URL. | 
| .jpeg) | RouteValues | Gets the route data to use for generating the URL. | 
| .jpeg) | UrlFactory | Gets the factory to use to generate the route URL. | 
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals(Object) | (Inherited from Object.) | 
| .jpeg) | ExecuteAsync(CancellationToken) | |
| .jpeg) | Finalize() | (Inherited from Object.) | 
| .jpeg) | GetHashCode() | (Inherited from Object.) | 
| .jpeg) | GetType() | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone() | (Inherited from Object.) | 
| .jpeg) | ToString() | (Inherited from Object.) | 
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.Http.Results Namespace
Return to top