Web 設定結構描述Web Settings Schema

Web 設定會指定 CPU 和執行層級 ASP.NET 設定,這些設定將套用至 ASP.NET 裝載層管理的整個處理序行為。Web settings specify CPU and execution-level ASP.NET settings that apply to process-wide behavior managed by the ASP.NET hosting layer. 這些設定不同於 ASP.NET 應用程式之 Web.config 檔中所指定的應用程式定義域類型設定。These settings differ from application domain-type settings that are specified in the Web.config file of an ASP.NET application.

Web 設定包含在 Aspnet.config 檔中,此檔案位於 .NET Framework 各版本的安裝資料夾中。Web settings are contained in Aspnet.config files, which are located in the installation folders for versions of the .NET Framework. 例如,.NET Framework 2.0 的 Aspnet .config 檔案位於下列資料夾中:For example, the Aspnet.config file for .NET Framework 2.0 is in the following folder:

C:\Windows\Microsoft.NET\Framework\v2.0.50727\

Web 設定會在於任何其他組態檔中使用,例如 machine.config 檔、根目錄 Web.config 或應用程式層級 Web.config 檔。Web settings are not used in any other configuration files such as the machine.config file, the root Web.config, or application-level Web.config files.

<configuration> <configuration>
  @ no__t-1 <system. web >   <system.web>
  @ no__t-1 @ no__t-2 @ no__t-3 <applicationPool >     <applicationPool>

元素Element 描述Description
<system.web><system.web> 包含 ASP.NET 裝載層使用的資訊。Contains information that the ASP.NET hosting layer uses.
<applicationPool><applicationPool> 指定 CPU 和執行層級 ASP.NET 設定,這些設定將套用至 ASP.NET 裝載層管理的整個處理序行為。Specifies CPU and execution-level ASP.NET settings that apply to process-wide behavior managed by the ASP.NET hosting layer.

另請參閱See also