Contains a list that indicates the configuration section handlers associated with each configuration section.
<configsections> <add name="config section element" type="config section handler" /> … </configsections>
The <add> sub-element contains the following attributes:
Directive | Description |
---|---|
name | Specifies the name of the element that will contain configuration data. |
type | Specifies the configuration section handler class to be associated with the element specified in the name attribute. |
There must be a configuration section handler declared for each configuration section in the file.
Configuration section handler settings are inherited throughout the application's scope. However, once an association is made between a configuration section and its handler, that association cannot be overridden by configuration file in a subdirectory.
All configuration section handlers must implement the IConfigSectionHandler interface. For more information about the IconfigSectionHandler interface, see that topic in the NGWS runtime Reference.
<configsections> <add name="httpmodules" type="System.Web.Config.HttpModuleConfigHandler"/> </configsections> <httpmodules> <add type="System.Web.Cache.OutputCacheModule" /> <add type="System.Web.SessionState.SessionStateModule" /> </httpmodules>
Contained Within: <configuration>
Web Platform: IIS 5.0
Configuration File: config.web
ASP+ Configuration Concepts