RouteCollectionExtensions.IgnoreRoute RouteCollectionExtensions.IgnoreRoute RouteCollectionExtensions.IgnoreRoute Method

Definition

Overloads

IgnoreRoute(RouteCollection, String) IgnoreRoute(RouteCollection, String) IgnoreRoute(RouteCollection, String)

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

IgnoreRoute(RouteCollection, String, Object) IgnoreRoute(RouteCollection, String, Object) IgnoreRoute(RouteCollection, String, Object)

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

IgnoreRoute(RouteCollection, String) IgnoreRoute(RouteCollection, String) IgnoreRoute(RouteCollection, String)

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

public static void IgnoreRoute (this System.Web.Routing.RouteCollection routes, string url);
static member IgnoreRoute : System.Web.Routing.RouteCollection * string -> unit
<Extension()>
Public Sub IgnoreRoute (routes As RouteCollection, url As String)

Parameters

routes
RouteCollection RouteCollection RouteCollection

A collection of routes for the application.

url
String String String

The URL pattern for the route to ignore.

Exceptions

IgnoreRoute(RouteCollection, String, Object) IgnoreRoute(RouteCollection, String, Object) IgnoreRoute(RouteCollection, String, Object)

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

public static void IgnoreRoute (this System.Web.Routing.RouteCollection routes, string url, object constraints);
static member IgnoreRoute : System.Web.Routing.RouteCollection * string * obj -> unit
<Extension()>
Public Sub IgnoreRoute (routes As RouteCollection, url As String, constraints As Object)

Parameters

routes
RouteCollection RouteCollection RouteCollection

A collection of routes for the application.

url
String String String

The URL pattern for the route to ignore.

constraints
Object Object Object

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

Exceptions

Applies to