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 路由整合

適用於

另請參閱