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。

适用于