Export (0) Print
Expand All

StopRoutingHandler Constructor

Initializes a new instance of the StopRoutingHandler class.

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

public StopRoutingHandler()

The following example shows how to prevent routing from handling requests for .axd files.

routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft