語言

RouteCollection.RouteExistingFiles 屬性

定義

取得或設定一個值,指示路由 ASP.NET 是否應該處理與現有檔案相符的網址。

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

屬性值

true 如果路由 ASP.NET 處理所有請求,甚至包括與現有檔案相符的請求;否則則false。 預設值為 false。

備註

雖然此值可動態更改,但在服務啟用後所做的任何變更,使用 ASP.NET 路由整合時將被忽略。 欲了解更多資訊,請參閱 ASP.NET 路由整合。

適用於

另請參閱