Share via


編譯之 buildProviders 的 remove 項目 (ASP.NET 設定結構描述)

移除集合中繼承組建提供者的參考。

這個項目是 .NET Framework 2.0 版中新增的項目。

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

屬性和項目

下列章節會說明屬性、子項目和父項目。

屬性

屬性

描述

extension

必要的 String 屬性。

定義要從集合移除的自訂資源副檔名。

預設為空字串 ("")。

子項目

無。

父項目

項目

描述

configuration

指定 Common Language Runtime 和 .NET Framework 應用程式所使用之每個組態檔中需要的根項目 (Root Element)。

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 Information Services (IIS) 5.0、5.1 或 6.0 版

.NET Framework 2.0 版

Microsoft Visual Studio 2003 或 Visual Studio 2005

請參閱

工作

How to: Configure Specific Folders Using Location Settings

How to: Lock ASP.NET Configuration Settings

參考

編譯的 buildProviders 項目 (ASP.NET 設定結構描述)

編譯之 buildProviders 的 clear 項目 (ASP.NET 設定結構描述)

編譯之 buildProviders 的 add 項目 (ASP.NET 設定結構描述)

configuration 項目 (一般設定結構描述)

system.web 項目 (ASP.NET 設定結構描述)

compilation 項目 (ASP.NET 設定結構描述)

System.Configuration

System.Web.Configuration

CompilationSection

Remove

概念

ASP.NET Compilation Model

ASP.NET Web Page Syntax Overview

ASP.NET Configuration File Hierarchy

Securing Configuration

Configuration Inheritance

其他資源

一般組態設定 (ASP.NET)

ASP.NET 組態設定

Configuring ASP.NET Applications

ASP.NET Configuration Files

ASP.NET Configuration API