RedirectToRouteResult Constructor
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
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. |
|
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.StringThe 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.
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
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.StringThe 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.
urlFactory
Type: System.Web.Http.Routing.UrlHelperThe factory to use to generate the route URL.
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
Return to top