compilation 的 buildProviders 的 remove 元素(ASP.NET 设置架构)

从集合中移除对继承的生成提供程序的引用。

此元素是 .NET Framework 2.0 版中的新元素。

<remove 
   extension="custom resource file extension"
/>

特性和元素

以下几节描述了属性、子元素和父元素。

特性

特性

说明

extension

必选的 String 特性。

定义要从集合中移除的自定义资源文件扩展名。

默认值为空字符串 ("")。

子元素

无。

父元素

元素

说明

configuration

指定公共语言运行时和 .NET Framework 应用程序所使用的每个配置文件中均需要的根元素。

system.web

为 ASP.NET 配置节指定根元素。

compilation

配置 ASP.NET 用于编译应用程序的所有编译设置。

buildProviders

定义用于编译自定义资源文件的生成提供程序的集合。

备注

remove 元素从集合中移除对继承的生成提供程序的引用。

buildProviders 元素定义生成提供程序的集合,这些提供程序用于在编译期间编译特定文件类型的自定义资源文件并生成代码。

示例

下面的代码示例演示如何从集合中移除生成提供程序。

<configuration>
   <system.web>
      <compilation>
         <buildProviders>
            <remove
               extension=".mafx" />
         </buildProviders>
      </compilation>
   </system.web>
</configuration>

元素信息

配置节处理程序

CompilationSection

配置成员

Remove

可配置的位置

Machine.config

根级别的 Web.config

应用程序级别的 Web.config

虚拟或物理目录级别的 Web.config

要求

Microsoft Internet 信息服务 (IIS) 版本 5.0、5.1 或 6.0

.NET Framework 2.0 版

Microsoft Visual Studio 2003 或 Visual Studio 2005

请参见

任务

如何:使用位置设置配置特定目录

如何:锁定 ASP.NET 配置设置

参考

compilation 的 buildProviders 元素(ASP.NET 设置架构)

compilation 的 buildProviders 的 clear 元素(ASP.NET 设置架构)

compilation 的 buildProviders 的 add 元素(ASP.NET 设置架构)

configuration 元素(常规设置架构)

system.web 元素(ASP.NET 设置架构)

compilation 元素(ASP.NET 设置架构)

System.Configuration

System.Web.Configuration

CompilationSection

Remove

概念

ASP.NET 编译概述

ASP.NET 网页语法概述

ASP.NET 配置文件层次结构和继承

保证 ASP.NET 配置的安全

ASP.NET 配置方案

其他资源

常规配置设置 (ASP.NET)

ASP.NET 配置设置

ASP.NET 网站管理

ASP.NET 配置文件

ASP.NET 配置 API