Information
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.RedirectToRoute Method

 

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

NameDescription
System_CAPS_protmethodRedirectToRoute(String, IDictionary<String, Object>)

Creates a redirect to route result (302 Found) with the specified values.

System_CAPS_protmethodRedirectToRoute(String, Object)

Creates a redirect to route result (302 Found) with the specified values.

Return to top

ApiController.RedirectToRoute Method (String, IDictionary<String, Object>)

Creates a redirect to route result (302 Found) with the specified values.

protected internal virtual RedirectToRouteResult RedirectToRoute(
	string routeName,
	IDictionary<string, object> routeValues
)

Parameters

routeName
Type: System.String

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

Return Value

Type: System.Web.Http.Results.RedirectToRouteResult

A redirect to route result (302 Found) with the specified values.

Return to top

ApiController.RedirectToRoute Method (String, Object)

Creates a redirect to route result (302 Found) with the specified values.

protected internal RedirectToRouteResult RedirectToRoute(
	string routeName,
	object routeValues
)

Parameters

routeName
Type: System.String

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

routeValues
Type: System.Object

The route data to use for generating the URL.

Return Value

Type: System.Web.Http.Results.RedirectToRouteResult

A redirect to route result (302 Found) with the specified values.

Return to top
Show: