RouteCollection.RouteExistingFiles 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示 ASP.NET 路由是否应处理与现有文件匹配的 URL。
public:
property bool RouteExistingFiles { bool get(); void set(bool value); };
public bool RouteExistingFiles { get; set; }
member this.RouteExistingFiles : bool with get, set
Public Property RouteExistingFiles As Boolean
属性值
如果 ASP.NET 路由处理所有请求(甚至与现有文件匹配的请求)true;否则,false。 默认值为 false。
注解
尽管此值可以动态更改,但在使用 ASP.NET 路由集成时,在激活服务后所做的任何更改都会被忽略。 有关详细信息,请参阅 ASP.NET 路由集成。