語言

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物件的 AUrlMapping。

屬性

範例

以下程式碼範例說明如何取得該 urlMappings 區段。


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

備註

每個 UrlMapping 物件包含兩個屬性,標示一個 URL。 其中一個屬性指定顯示給使用者的網址;另一個則指定你的網頁應用程式中的網址。

適用於