Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RouteCollectionExtensions.IgnoreRoute Method (RouteCollection, String)

Ignores the specified URL route for the given list of available routes.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public static void IgnoreRoute(
	this RouteCollection routes,
	string url
)

Parameters

routes
Type: System.Web.Routing.RouteCollection
A collection of routes for the application.
url
Type: System.String
The URL pattern for the route to ignore.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RouteCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see b8020aae-374d-46a9-bcb7-8cc2390b93b6 or 175ce3ff-9bbf-4e64-8421-faeb81a0bb51.
ExceptionCondition
ArgumentNullException

The routes or url parameter is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.