Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IgnoreRoute Method (RouteCollection, String)

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)

static member IgnoreRoute : 
        routes:RouteCollection * 
        url:string -> unit

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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.108) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.108).

ExceptionCondition
ArgumentNullException

The routes or url parameter is a null reference (Nothing in Visual Basic).

Show:
© 2015 Microsoft