HttpModuleActionCollection.Add Method (HttpModuleAction)
.NET Framework (current version)
Adds an HttpModuleAction object to the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- httpModule
-
Type:
System.Web.Configuration.HttpModuleAction
The HttpModuleAction module to add to the collection.
| Exception | Condition |
|---|---|
| ConfigurationException | An attempt was made to add an HttpModuleAction object that already exists in the collection. |
Adds an HttpModuleAction object to the collection.
The following example shows how to create an HttpModuleAction object and add it to the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: