Share via


UrlMappingsSection.UrlMappings 屬性

定義

取得 UrlMapping 物件的集合。

public:
 property System::Web::Configuration::UrlMappingCollection ^ UrlMappings { System::Web::Configuration::UrlMappingCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.UrlMappingCollection UrlMappings { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)>]
member this.UrlMappings : System.Web.Configuration.UrlMappingCollection
Public ReadOnly Property UrlMappings As UrlMappingCollection

屬性值

包含 UrlMappingCollection 物件的 UrlMapping

屬性

範例

下列程式碼範例示範如何取得 區 urlMappings 段。


// Get the url mapping collection.
UrlMappingCollection urlMappings =
  urlMappingSection.UrlMappings;
' Get the url mapping collection.
Dim urlMappings _
As UrlMappingCollection = _
urlMappingSection.UrlMappings

備註

每個 UrlMapping 物件都包含兩個識別 URL 的屬性。 一個屬性會指定向使用者顯示的 URL;另一個 會指定 Web 應用程式中的 URL。

適用於