RouteCollectionExtensions.IgnoreRoute Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IgnoreRoute(RouteCollection, String) |
Ignores the specified URL route for the given list of available routes. |
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)
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
A collection of routes for the application.
- url
- String
The URL pattern for the route to ignore.
Exceptions
The routes
or url
parameter is null.
Applies to
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
A collection of routes for the application.
- url
- String
The URL pattern for the route to ignore.
- constraints
- Object
A set of expressions that specify values for the url
parameter.
Exceptions
The routes
or url
parameter is null.
Applies to
Feedback
Submit and view feedback for