【ASP.NET】System.Web.Routing - StopRoutingHandler Class

Provides a way to specify that ASP.NET routing should not handle requests for a URL pattern.

ex:

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

 The StopRoutingHandler class enables you to specify that ASP.NET routing should not handle certain URL requests. You prevent routing from handling certain requests by defining a route and specifying that the StopRoutingHandler class should be used to handle that route's pattern. When a request is handled by a StopRoutingHandler object, the StopRoutingHandler object blocks any additional processing of the request as a route. Instead, the request is processed as an ASP.NET page, Web service, or other ASP.NET endpoint.

 

posted @ 2018-11-06 15:49  YanyuWu  阅读(185)  评论(0编辑  收藏  举报