Share via


RedirectToRouteResult Constructor

 

Namespace:   System.Web.Http.Results
Assembly:  System.Web.Http (in System.Web.Http.dll)

Overload List

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.

See Also

RedirectToRouteResult Class
System.Web.Http.Results Namespace

Return to top

RedirectToRouteResult Constructor (String, IDictionary<String, Object>, ApiController)

Initializes a new instance of the <see cref="T:System.Web.Http.Results.RedirectToRouteResult"/> class with the values provided.

Syntax

public RedirectToRouteResult(
    string routeName,
    IDictionary<string, object> routeValues,
    ApiController controller
)
public:
RedirectToRouteResult(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues,
    ApiController^ controller
)
new : 
        routeName:string *
        routeValues:IDictionary<string, Object> *
        controller:ApiController -> RedirectToRouteResult
Public Sub New (
    routeName As String,
    routeValues As IDictionary(Of String, Object),
    controller As ApiController
)

Parameters

  • routeName
    Type: System.String

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

Return to top

RedirectToRouteResult Constructor (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.

Syntax

public RedirectToRouteResult(
    string routeName,
    IDictionary<string, object> routeValues,
    UrlHelper urlFactory,
    HttpRequestMessage request
)
public:
RedirectToRouteResult(
    String^ routeName,
    IDictionary<String^, Object^>^ routeValues,
    UrlHelper^ urlFactory,
    HttpRequestMessage^ request
)
new : 
        routeName:string *
        routeValues:IDictionary<string, Object> *
        urlFactory:UrlHelper *
        request:HttpRequestMessage -> RedirectToRouteResult
Public Sub New (
    routeName As String,
    routeValues As IDictionary(Of String, Object),
    urlFactory As UrlHelper,
    request As HttpRequestMessage
)

Parameters

  • routeName
    Type: System.String

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

Return to top