RouteCollectionExtensions.IgnoreRoute Method

 

Ignores the specified route.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticIgnoreRoute(RouteCollection, String)

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

System_CAPS_pubmethodSystem_CAPS_staticIgnoreRoute(RouteCollection, String, Object)

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

Return to top

RouteCollectionExtensions.IgnoreRoute Method (RouteCollection, String)

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

<ExtensionAttribute>
Public Shared Sub IgnoreRoute (
	routes As RouteCollection,
	url As String
)

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.

Exception Condition
ArgumentNullException

The routes or url parameter is null.

Return to top

RouteCollectionExtensions.IgnoreRoute Method (RouteCollection, String, Object)

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

<ExtensionAttribute>
Public Shared Sub IgnoreRoute (
	routes As RouteCollection,
	url As String,
	constraints As Object
)

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.

constraints
Type: System.Object

A set of expressions that specify values for the url parameter.

Exception Condition
ArgumentNullException

The routes or url parameter is null.

Return to top
Show: