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.

HttpRouteCollectionExtensions::IgnoreRoute Method

 

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.

Return to top

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.

Return to top
Show: