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

用于提供一些属性和方法来定义如何将URL匹配到一个物理文件上面。

public PageRouteHandler (string virtualPath, bool checkPhysicalUrlAccess);

 

Parameters

virtualPath
String

The virtual path of the physical file of this Route object. The file must be located in the current application. Therefore, the path must begin with a tilde (~).

checkPhysicalUrlAccess
Boolean

If this property is set to false, authorization rules will be applied to the request URL and not to the URL of the physical page. If this property is set to true, authorization rules will be applied to both the request URL and to the URL of the physical page.

 

参考资料: https://docs.microsoft.com/en-us/dotnet/api/system.web.routing.pageroutehandler.-ctor?view=netframework-4.7.2#System_Web_Routing_PageRouteHandler__ctor_System_String_System_Boolean_

posted @ 2018-11-06 14:25  YanyuWu  阅读(156)  评论(0编辑  收藏  举报