UrlMapping.MappedUrl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Web 應用程式中的 URL。
public:
property System::String ^ MappedUrl { System::String ^ get(); };
[System.Configuration.ConfigurationProperty("mappedUrl", IsRequired=true)]
public string MappedUrl { get; }
[<System.Configuration.ConfigurationProperty("mappedUrl", IsRequired=true)>]
member this.MappedUrl : string
Public ReadOnly Property MappedUrl As String
屬性值
Web 應用程式中的 URL,其已對應至 Url 屬性指定的值。
- 屬性
範例
下列程式碼範例示範如何取得 MappedUrl 屬性。 此範例來自 類別的較大範例 UrlMapping 。
urlMap = (UrlMapping)urlMapSection.UrlMappings[showVal - 1];
realURL.Text = urlMap.MappedUrl;
urlMap = CType(urlMapSection.UrlMappings(showVal - 1), UrlMapping)
realURL.Text = urlMap.MappedUrl
備註
屬性 MappedUrl 是組態檔 區段中專案 add
urlMappings
屬性的程式設計對等 mappedUrl
專案。
注意
使用 IIS 5.0 時,如果您使用 MappedUrl 屬性從支援的網頁類型對應 (例如 .aspx 檔案) 不支援的頁面類型, (例如 .asp 頁面) ,就會發生錯誤。 IIS 6.0 版支援這種類型的對應。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應