UrlMappingsSection.UrlMappings Egenskap

Definition

Hämtar en samling UrlMapping objekt.

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

Egenskapsvärde

En UrlMappingCollection som innehåller UrlMapping objekt.

Attribut

Exempel

Följande kodexempel visar hur du hämtar avsnittet urlMappings .


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

Kommentarer

Varje UrlMapping objekt innehåller två egenskaper som identifierar en URL. En egenskap anger den URL som visas för användaren. den andra anger en URL i webbprogrammet.

Gäller för