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.
HttpRouteCollectionExtensions::IgnoreRoute Method
Namespace:
System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | IgnoreRoute(HttpRouteCollection^, String^, String^) | Ignores the specified route. |
![]() ![]() | IgnoreRoute(HttpRouteCollection^, String^, String^, Object^) | Ignores the specified route. |
HttpRouteCollectionExtensions::IgnoreRoute Method (HttpRouteCollection^, String^, String^)
Ignores the specified route.
public: [ExtensionAttribute] static IHttpRoute^ IgnoreRoute( HttpRouteCollection^ routes, String^ routeName, String^ routeTemplate )
Parameters
- routes
-
Type:
System.Web.Http::HttpRouteCollection^
A collection of routes for the application.
- routeName
-
Type:
System::String^
The name of the route to ignore.
- routeTemplate
-
Type:
System::String^
The route template for the route.
HttpRouteCollectionExtensions::IgnoreRoute Method (HttpRouteCollection^, String^, String^, Object^)
Ignores the specified route.
public: [ExtensionAttribute] static IHttpRoute^ IgnoreRoute( HttpRouteCollection^ routes, String^ routeName, String^ routeTemplate, Object^ constraints )
Parameters
- routes
-
Type:
System.Web.Http::HttpRouteCollection^
A collection of routes for the application.
- routeName
-
Type:
System::String^
The name of the route to ignore.
- routeTemplate
-
Type:
System::String^
The route template for the route.
- constraints
-
Type:
System::Object^
A set of expressions that specify values for the route template.
Show:

