语言

RouteCollection.RouteExistingFiles 属性

定义

获取或设置一个值,该值指示 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 路由集成。

适用于

另请参阅