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.
HttpRouteCollection::CreateRoute Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
HttpRouteCollection::CreateRoute Method (String^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^)
Creates an IHttpRoute instance.
public:
IHttpRoute^ CreateRoute(
String^ routeTemplate,
IDictionary<String^, Object^>^ defaults,
IDictionary<String^, Object^>^ constraints,
IDictionary<String^, Object^>^ dataTokens
)
Parameters
- routeTemplate
-
Type:
System::String^
The route template.
- defaults
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the default route parameters.
- constraints
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the route constraints.
- dataTokens
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
The route data tokens.
HttpRouteCollection::CreateRoute Method (String^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, IDictionary<String^, Object^>^, HttpMessageHandler^)
Creates an IHttpRoute instance.
public: virtual IHttpRoute^ CreateRoute( String^ routeTemplate, IDictionary<String^, Object^>^ defaults, IDictionary<String^, Object^>^ constraints, IDictionary<String^, Object^>^ dataTokens, HttpMessageHandler^ handler )
Parameters
- routeTemplate
-
Type:
System::String^
The route template.
- defaults
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the default route parameters.
- constraints
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
An object that contains the route constraints.
- dataTokens
-
Type:
System.Collections.Generic::IDictionary<String^, Object^>^
The route data tokens.
- handler
-
Type:
System.Net.Http::HttpMessageHandler^
The message handler for the route.
HttpRouteCollection::CreateRoute Method (String^, Object^, Object^)
Creates an IHttpRoute instance.
public:
IHttpRoute^ CreateRoute(
String^ routeTemplate,
Object^ defaults,
Object^ constraints
)
Parameters
- routeTemplate
-
Type:
System::String^
The route template.
- defaults
-
Type:
System::Object^
An object that contains the default route parameters.
- constraints
-
Type:
System::Object^
An object that contains the route constraints.
Show:
