.NET Framework 的組態檔結構描述Configuration file schema for the .NET Framework

組態檔是標準的 XML 檔,可以用來變更應用程式的設定和設定應用程式的原則。Configuration files are standard XML files that you can use to change settings and set policies for your apps. .NET Framework 組態結構描述所包含的項目可在組態檔中用來控制應用程式的行為。The .NET Framework configuration schema consists of elements that you can use in configuration files to control the behavior of your apps. 本節的目錄反映出啟動、執行階段、網路和其他類型組態設定的結構描述階層架構。The table of contents for this section reflects the schema hierarchy for startup, runtime, network, and other types of configuration settings.

如需組態檔之類型、格式和位置的資訊,請參閱 設定應用程式一文。For information about the types, format, and location of configuration files, see the article Configuring Apps. 如果想要直接編輯組態檔,請熟悉 XML。Familiarize yourself with XML if you want to edit the configuration files directly.

重要

組態檔中的 XML 標記和屬性區分大小寫。XML tags and attributes in configuration files are case-sensitive.

本節內容In this section

<configuration> 項目 - 描述 <configuration> 項目,這個項目是所有組態檔的最上層項目。<configuration> Element Describes the <configuration> element, which is the top-level element for all configuration files.

<assemblyBinding> 項目 - 指定位於組態層級的組件繫結原則。<assemblyBinding> Element Specifies assembly binding policy at the configuration level.

<linkedConfiguration> 項目 - 指定要包含的組態檔。<linkedConfiguration> Element Specifies a configuration file to include.

啟動設定結構描述 - 描述指定要使用的 Common Language Runtime 版本的項目。Startup Settings Schema Describes the elements that specify which version of the common language runtime to use.

執行階段設定結構描述 - 描述設定組件繫結和執行階段行為的項目。Runtime Settings Schema Describes the elements that configure assembly binding and runtime behavior.

網路設定結構描述 - 描述指定 .NET Framework 連線到網際網路之方式的項目。Network Settings Schema Describes the elements that specify how the .NET Framework connects to the Internet.

密碼編譯設定結構描述 - 描述將易記的演算法名稱對應至實作密碼編譯演算法之類別的項目。Cryptography Settings Schema Describes elements that map friendly algorithm names to classes that implement cryptography algorithms.

組態區段結構描述 - 描述用來建立和使用自訂設定之組態區段的項目。Configuration Sections Schema Describes the elements used to create and use configuration sections for custom settings.

追蹤和偵錯設定結構描述 - 描述指定追蹤參數和接聽項的項目。Trace and Debug Settings Schema Describes the elements that specify trace switches and listeners.

編譯器和語言提供者設定結構描述 - 描述在指定可用的語言提供者之編譯器組態的項目。Compiler and Language Provider Settings Schema Describes the elements that specify compiler configuration for available language providers.

應用程式設定結構描述 - 描述可讓 Windows Forms 或 ASP.NET 應用程式儲存及擷取應用程式範圍和使用者範圍設定的項目。Application Settings Schema Describes the elements that enable a Windows Forms or ASP.NET application to store and retrieve application-scoped and user-scoped settings.

應用程式設定結構描述 - 包含自訂應用程式設定,例如檔案路徑、XML Web 服務 URL,或應用程式的任何其他自訂組態資訊。App Settings Schema Contains custom application settings, such as file paths, XML Web service URLs, or any other custom configuration information for an application.

Web 設定結構描述 - Web 設定結構描述中的所有項目,包括用來設定 ASP.NET 如何配合主機應用程式 (例如 IIS) 運作的項目。Web Settings Schema All elements in the Web settings schema, which includes elements for configuring how ASP.NET works with a host application such as IIS. 用於 Aspnet.config 檔案。Used in Aspnet.config files.

Windows Forms 組態結構描述 - Windows Forms 應用程式組態區段中的所有項目,包括多重監視器和高 DPI 支援等自訂項目。Windows Forms Configuration Schema All elements in the Windows Forms application configuration section, which includes customizations such as multi-monitor and high DPI support.

WCF 組態結構描述 - 可讓您設定 WCF 服務與用戶端應用程式的所有項目。WCF Configuration Schema All elements that enable you to configure WCF service and client applications.

WCF 指示詞語法 - 描述定義 .svc 編譯器使用之網頁專用屬性的 @ServiceHost 指示詞。WCF Directive Syntax Describes the @ServiceHost directive, which defines page-specific attributes used by the .svc compiler.

WIF 組態結構描述 - Windows Identity Foundation (WIF) 組態結構描述的所有項目。WIF Configuration Schema All elements of the Windows Identity Foundation (WIF) configuration schema.

遠端設定結構描述 - 描述設定實作遠端處理之用戶端和伺服器應用程式的項目。Remoting Settings Schema Describes the elements that configure client and server applications that implement remoting.

ASP.NET 設定結構描述 - 描述控制 ASP.NET Web 應用程式之行為的項目。ASP.NET Settings Schema Describes the elements that control the behavior of ASP.NET Web applications.

Web 服務設定結構描述 - 描述控制 ASP.NET Web 服務和其用戶端之行為的項目。Web Services Settings Schema Describes the elements that control the behavior of ASP.NET Web services and their clients.

設定 .NET Framework 應用程式 - 描述如何在 .NET Framework 中設定安全性、組件繫結和遠端處理。Configuring .NET Framework Apps Describes how to configure security, assembly binding, and remoting in the .NET Framework.