次の方法で共有


remove Element for urlMappings (ASP.NET Settings Schema)

Removes a UrlMapping object that was previously established.

<remove url="String"/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

url

Required String attribute.

Defines the application-relative URL of a previously defined urlMapping object.

Child Elements

None.

Parent Elements

Element Description

configuration

The required root element in every configuration file used by the common language runtime and .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration settings in a configuration file. Contains configuration elements that configure ASP.NET Web applications and control how the applications behave.

urlMappings

Defines the mapping of one URL to another mapped URL.

Example

The following example removes a urlMapping object from an ASP.NET application.

<urlMappings enabled=”true”>
  <remove url=”~/Home2.aspx” />
</urlMappings>

Element Information

Configuration Section Handler

System.Web.Configuration.UrlMappingsSection

Configuration Member

System.Web.Configuration.SystemWebSectionGroup.UrlMappings

System.Web.Configuration.UrlMappingsSection.UrlMappings

Configurable Locations

Machine.config

Root level Web.config

Application level Web.config

Requirements

IIS 5.0, IIS 5.1 or IIS 6.0

.NET Framework 2.0

Visual Studio 2005

See Also

Tasks

How to: Configure Specific Directories Using Location Settings
How to: Lock ASP.NET Configuration Settings

Reference

system.web Element (ASP.NET Settings Schema)
configuration Element (General Settings Schema)
add Element for urlMappings (ASP.NET Settings Schema)
clear Element for urlMappings (ASP.NET Settings Schema)
System.Configuration
System.Web.Configuration

Concepts

ASP.NET Configuration Overview
ASP.NET Configuration Scenarios
Securing ASP.NET Configuration

Other Resources

General Configuration Settings (ASP.NET)
ASP.NET Configuration Settings
Configuring ASP.NET Applications
ASP.NET Configuration API