用于提供一些属性和方法来定义如何将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.