UrlMappingsSection.UrlMappings 属性

定义

获取 UrlMapping 对象的集合。Gets a collection of UrlMapping objects.

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

属性值

一个包含 UrlMappingCollection 对象的 UrlMappingA UrlMappingCollection that contains UrlMapping objects.

属性

示例

下面的代码示例演示如何获取urlMappings部分。The following code example shows how to obtain the urlMappings section.


// Get the url mapping collection.
UrlMappingCollection urlMappings =
  urlMappingSection.UrlMappings;

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

注解

UrlMapping个对象都包含两个标识 URL 的属性。Each UrlMapping object contains two properties identifying a URL. 一个属性指定向用户显示的 URL;另一个在 Web 应用程序中指定一个 URL。One property specifies the URL shown to the user; the other specifies a URL in your Web application.

适用于