ConfigurationSectionWithCollection Class [IIS 7 and higher]
Serves as a base class for configuration-section classes that contain collections.
Syntax
class ConfigurationSectionWithCollection : ConfigurationSection
Methods
The following table lists the methods exposed by the ConfigurationSectionWithCollection class.
Name |
Description |
---|---|
Adds an element to a collection in a configuration section. |
|
Clears all elements from a collection in a configuration section. |
|
Retrieves the specified member of a collection from a configuration section. |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
Removes the specified element from a collection in a configuration section. |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
Properties
The following table lists the properties exposed by the ConfigurationSectionWithCollection class.
Name |
Description |
---|---|
Location |
(Inherited from ConfigurationSection.) A key property. |
Path |
(Inherited from ConfigurationSection.) A key property. |
SectionInformation |
(Inherited from ConfigurationSection.) |
Subclasses
The following table lists the subclasses exposed by the ConfigurationSectionWithCollection class.
Name |
Description |
---|---|
Exposes application dependency information. |
|
Contains custom application settings, such as file paths, XML Web service URLs, or information that is stored in the .ini file for an application. |
|
Specifies the authentication modules that conduct the authentication process with a server. |
|
Configures ASP.NET authentication. |
|
Configures authorization for access to URLs. |
|
Configures output and kernel caching. |
|
Specifies a collection of mappings between aliases and user agents. |
|
Configures compilation settings for ASP.NET applications. |
|
Contains protected configuration provider information. |
|
Contains a collection that specifies the maximum number of connections to specified network hosts for System.Net APIs. |
|
Specifies a collection of database connection strings for ASP.NET applications. |
|
Configures ASP.NET custom error messages. |
|
Specifies the Web page file names to serve to clients by default. |
|
Configures Web proxy server defaults. |
|
Represents a collection of device filters that determine mobile device types or mobile browser capabilities. |
|
Contains configuration settings for FastCGI applications. |
|
Exposes configuration settings for IIS global modules. |
|
Stores the handlers for a URL. |
|
Configures an application for health monitoring. |
|
Configures HTTP compression. |
|
Configures HTTP error handling for a Web server. |
|
Configures settings for ASP.NET handlers. |
|
Contains ASP.NET modules. |
|
Represents an HTTP protocol configuration section. |
|
Configures HTTP redirection. |
|
Represents an HTTP tracing configuration section. |
|
Configures mapping for IIS client certificates. |
|
Configures access to Web server content based on IP address-related information. |
|
Configures ISAPI and Common Gateway Interface (CGI) restrictions for a Web server that runs in ISAPI mode. |
|
Configures the ISAPI filters on a Web server. |
|
Exposes a collection of listener adapters. |
|
Validates user credentials and manages user settings. |
|
Exposes configuration information for mobile controls, their adapters, and device filters. |
|
Represents the modules section in a configuration file. |
|
Specifies the output-cache profile settings that can be applied to pages in an ASP.NET application. |
|
Represents the <pages> section of a Web.config file. |
|
Contains a list of transmission protocols that ASP.NET can use to decrypt data sent from a client browser in the HTTP request. |
|
Configures the scanning of incoming URL requests. |
|
Defines configuration settings that are used to support the role management infrastructure of Web applications. |
|
Contains a collection of extensions that map XML Schema (XSD) types to .NET Framework types. |
|
Defines a collection of mappings between security policy files and their trust-level names. |
|
Configures the session state for a Web application. |
|
Defines configuration settings for site navigation. |
|
Represents a SqlCacheDependency configuration section. |
|
Exposes configuration settings for static content on a Web site. |
|
Specifies a collection of compilers that provide Code Document Object Model (CodeDOM) support. |
|
Specifies a list of installed ADO.NET data providers. |
|
Configures system diagnostics and tracing. |
|
Represents a failed-request tracing configuration section. |
|
Represents the configuration section that defines trace providers. |
|
Represents a <urlMappings> section that contains pairs of inbound/outbound URL mappings. |
|
Contains a collection of registered Web request modules. |
|
Controls the behavior of XML Web services and their clients. |
|
Configures Integrated Windows authentication. |
Remarks
If you change a key property that is in a collection, the positional order (and index) of the property in the collection may change. The changed key property will be added to the beginning or end of the collection depending on the value of the mergeAppend attribute.
Note
The mergeAppend attribute is in the appropriate schema file in the section that corresponds to the class property. If the mergeAppend attribute is false, new items are added to the beginning of the collection; if the mergeAppend attribute is true, new items are added to the end of the collection.
You should be careful how you access a key property in a collection after the key property's value has changed. For example, if you change the value of a key property whose index is 4, the new index for the key property will be 0 if the mergeAppend attribute is false.
Note
You should be aware of this behavior when you create any custom schema and custom configuration files. You should not modify the mergeAppend attributes in the schema files that ship with IIS 7. You cannot modify the mergeAppend attribute by using the WMI provider for IIS 7.
The mergeAppend attribute affects the following ConfigurationSectionWithCollection class properties that ship with IIS 7. The table lists these properties and their corresponding schema files. In all these cases, the schema files that ship with IIS 7 specify false for the mergeAppend attribute.
Class |
Property |
Schema file |
---|---|---|
Authorization |
ASPNET_Schema.xml |
|
Profiles.Profiles |
IIS_Schema.xml |
|
Files.Files |
IIS_Schema.xml |
|
Handlers |
IIS_Schema.xml |
|
HttpHandlers |
ASPNET_Schema.xml |
Inheritance Hierarchy
ConfigurationSectionWithCollection
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
AuthorizationRule Class [IIS 7 and higher]
AuthorizationSection Class [IIS 7 and higher]
CachingProfileElement Class [IIS 7 and higher]
CachingProfileSettings Class [IIS 7 and higher]
CachingSection Class [IIS 7 and higher]
ConfigurationSection Class [IIS 7 and higher]
DefaultDocumentSection Class [IIS 7 and higher]
FileSettings Class [IIS 7 and higher]
HandlerAction Class [IIS 7 and higher]
HandlersSection Class [IIS 7 and higher]
HttpHandlerAction Class [IIS 7 and higher]