UrlMappingsSection.UrlMappings Property

 

Gets a collection of UrlMapping objects.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("", IsDefaultCollection = true)]
public UrlMappingCollection UrlMappings { get; }

Each UrlMapping object contains two properties identifying a URL. One property specifies the URL shown to the user; the other specifies a URL in your Web application.

The following code example shows how to obtain the urlMappings section.


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

.NET Framework
Available since 2.0
Return to top
Show: