ConfigurationSection Class [IIS 7 and higher]
Serves as a base class for classes that represent configuration sections.
Syntax
class ConfigurationSection
Methods
The following table lists the methods exposed by the ConfigurationSection class.
Name |
Description |
---|---|
Retrieves the allowDefinition attribute for a configuration section. |
|
Retrieves the allowLocation attribute for a configuration section. |
|
Reverts configuration values in a section to those of its parent section. |
|
Sets the allowDefinition attribute for a configuration section. |
|
Sets the allowLocation attribute for a configuration section. |
Properties
The following table lists the properties exposed by the ConfigurationSection class.
Name |
Description |
---|---|
Location |
A read-only string value that contains the path to a target object relative to the current object. For example, in the object path "MACHINE/WEBROOT/APPHOST/MYSITE/APP/", the Location property would contain "MYSITE/APP/". A key property. |
Path |
A read-only string value that contains the path to the current object. For example, in the object path "MACHINE/WEBROOT/APPHOST/MYSITE/APP/", the Path property would contain "MACHINE/WEBROOT/APPHOST/". A key property. |
SectionInformation |
A SectionInformation object whose read/write properties provide metadata and control locking for a configuration section. |
Subclasses
The following table lists the subclasses exposed by the ConfigurationSection class.
Name |
Description |
---|---|
Specifies access permissions to content protected by Secure Sockets Layer (SSL). |
|
Configures Anonymous authentication. |
|
Specifies how cookies are used in a Web application. |
|
Exposes Active Server Pages (ASP) configuration settings for ASP applications. |
|
Configures Basic authentication. |
|
Defines cache settings for an ASP.NET Web application. |
|
Configures Common Gateway Interface (CGI) settings. |
|
Enables or disables client certificate mapping authentication. |
|
Configures the configuration history settings of the ApplicationHost Helper Service. |
|
Configures the location of the ApplicationHost.config and Administration.config files. |
|
Serves as a base class for configuration-section classes that contain collections. |
|
Handles configuration settings for XML serialization of System.DateTime instances. |
|
Configures Digest authentication. |
|
Configures directory browsing in IIS. |
|
Configures the globalization settings for a Web application. |
|
Defines configuration settings that control the behavior of the application hosting environment. |
|
Configures properties for cookies used by a Web application. |
|
Configures the logging of HTTP requests. |
|
Configures ASP.NET HTTP run-time settings that determine how a request is processed for a given ASP.NET application. |
|
Specifies whether an ASP.NET application should run as the application pool identity (the default), the IIS-authenticated user identity, or a custom configured identity. |
|
Configures the logging for a server or site. |
|
Defines the configuration settings that control the key generation and algorithms that are used in encryption, decryption, and media access control (MAC) operations in Forms authentication, view-state validation, and session-state application isolation. |
|
Specifies configuration settings for logging IIS events to a database through an Open Database Connectivity (ODBC) connection. |
|
Specifies output cache settings for an ASP.NET application. |
|
Configures the ASP.NET process model settings on a Web server that is running IIS. |
|
Contains configuration information for request caching. |
|
Configures request limits for applications on a Web server. |
|
Configures server-side includes (SSI) directives. |
|
Configures page view-state settings for an ASP.NET application. |
|
Contains settings that specify how the .NET Framework connects to the network. |
|
Contains Simple Mail Transfer Protocol (SMTP) configuration settings. |
|
Defines configuration settings that support the deployment of a Web application. |
|
Stores application settings for Windows Forms applications. |
|
Configures the ASP.NET code-tracing service. |
|
Contains default settings for transactions. |
|
Represents an XML section in a configuration file that contains settings that can be modified only at the computer level. |
|
Configures the level of code-access security that is applied to an application. |
|
Enables or disables dynamic or static compression. |
|
Enables or disables validation checks on configuration files. |
|
Specifies the shared location of client script files. |
|
Specifies limits on client traffic to a Web server. |
|
Specifies the XHTML rendering mode for ASP.NET applications. |
|
Handles the XML elements used to configure XML serialization. |
Remarks
The association classes that derive from the ObjectConfigurationAssociation class use the ConfigurationSection class to link objects to configuration sections.
All classes that derive from ConfigurationSection inherit the Location, Path, and SectionInformation properties. Location and Path are key properties for all subclasses of ConfigurationSection.
Requirements
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
See Also
Reference
ConfigurationSectionWithCollection Class [IIS 7 and higher]
ObjectConfigurationAssociation Class [IIS 7 and higher]
SectionInformation Class [IIS 7 and higher]