HttpModuleActionCollection Class
.NET Framework 3.0
Represents a collection of HttpModuleAction objects. This class cannot be inherited.
Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The HttpModuleActionCollection collection allows access to the HttpModuleAction elements of the HttpModulesSection section.
The following example shows how to use the HttpModuleActionCollection class.
// Get the Web application configuration. System.Configuration.Configuration configuration = WebConfigurationManager.OpenWebConfiguration( "/aspnetTest"); // Get the section. HttpModulesSection httpModulesSection = (HttpModulesSection)configuration.GetSection( "system.web/httpModules"); // Get the collection. HttpModuleActionCollection modulesCollection = httpModulesSection.Modules;
The following example is an excerpt of the configuration file that enables ASP.NET to use a custom module. For a complete example of how to build and configure an HTTP module, see the HTTP Module Configuration Sample.
<httpModules>
<add name="TimerModule"
type="Samples.AspNet.RequestTimeInterval, RequestTimeInterval Version=1.0.1557.23158, Culture=neutral,
PublicKeyToken=7bfb33146a87b52e, processorArchitecture=MSIL"/>
</httpModules>
System.Object
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.HttpModuleActionCollection
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.HttpModuleActionCollection