UrlHelper::Route Method

 

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

Return to top

UrlHelper::Route Method (String^, IDictionary<String^, Object^>^)

Returns the route for the UrlHelper.

public:
virtual String^ Route(
	String^ routeName,
	IDictionary<String^, Object^>^ routeValues
)

Parameters

routeName
Type: System::String^

The name of the route.

routeValues
Type: System.Collections.Generic::IDictionary<String^, Object^>^

A list of route values.

Return Value

Type: System::String^

The route for the UrlHelper.

Return to top

UrlHelper::Route Method (String^, Object^)

Returns the route for the UrlHelper.

public:
virtual String^ Route(
	String^ routeName,
	Object^ routeValues
)

Parameters

routeName
Type: System::String^

The name of the route.

routeValues
Type: System::Object^

The route values.

Return Value

Type: System::String^

The route for the UrlHelper.

Return to top
Show: