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.

public protected:
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.

public protected:
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: