.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 Configure 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> Element
所有設定檔的最上層元素。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.

啟動設定架構Startup Settings Schema
元素,指定要使用的 common language runtime 版本。Elements that specify which version of the common language runtime to use.

執行時間設定架構Runtime Settings Schema
設定元件系結和執行時間行為的元素。Elements that configure assembly binding and runtime behavior.

網路設定結構描述Network Settings Schema
指定 .NET Framework 如何連接到網際網路的元素。Elements that specify how the .NET Framework connects to the internet.

密碼編譯設定架構Cryptography Settings Schema
將易記的演算法名稱對應至實密碼編譯演算法之類別的元素。Elements that map friendly algorithm names to classes that implement cryptography algorithms.

設定區段架構Configuration Sections Schema
用來建立和使用自訂設定區段的元素。Elements used to create and use configuration sections for custom settings.

追蹤和 Debug 設定架構Trace and Debug Settings Schema
指定追蹤參數和接聽程式的元素。Elements that specify trace switches and listeners.

編譯器和語言提供者設定架構Compiler and Language Provider Settings Schema
指定可用語言提供者之編譯器設定的元素。Elements that specify compiler configuration for available language providers.

應用程式設定架構Application Settings Schema
專案,可讓 Windows Forms 或 ASP.NET 應用程式儲存和取出應用程式範圍和使用者範圍的設定。Elements that enable a Windows Forms or ASP.NET application to store and retrieve application-scoped and user-scoped settings.

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

Web 設定架構Web Settings Schema
用於設定 ASP.NET 如何與主應用程式(例如 IIS)搭配運作的元素。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 Configuration Schema
Windows Forms 應用程式設定 區段中的所有元素,包括多監視器和高 DPI 支援等自訂。All elements in the Windows Forms application configuration section, which includes customizations such as multi-monitor and high-DPI support.

WCF 設定架構WCF Configuration Schema
所有可讓您設定 WCF 服務和用戶端應用程式的元素。All elements that enable you to configure WCF service and client applications.

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

WIF 組態結構描述WIF Configuration Schema
Windows Identity Foundation (WIF)設定架構的所有元素。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 Settings Schema
描述控制 ASP.NET Web 應用程式之行為的項目。Describes the elements that control the behavior of ASP.NET Web applications.

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

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