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.
本文介绍了一种在ASP.NET中使用StopRoutingHandler类来指定某些URL模式请求不应由路由处理的方法。通过定义特定的路由模式并指定使用StopRoutingHandler处理,可以阻止这些请求作为路由进行进一步处理,而让其直接被处理为ASP.NET页面、Webservice或其他ASP.NET端点。

120

被折叠的 条评论
为什么被折叠?



