RouteCollection.RouteExistingFiles 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示路由 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 路由整合。