RedirectToRouteResult Class

 

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
System_CAPS_pubmethod 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.

System_CAPS_pubmethod 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
System_CAPS_pubproperty Request

Gets the request message which led to this result.

System_CAPS_pubproperty RouteName

Gets the name of the route to use for generating the URL.

System_CAPS_pubproperty RouteValues

Gets the route data to use for generating the URL.

System_CAPS_pubproperty UrlFactory

Gets the factory to use to generate the route URL.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod ExecuteAsync(CancellationToken)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod 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