HttpModuleAction.Type Property


Gets or sets the module type.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute("type", IsRequired = true, DefaultValue = "")]
public string Type { get; set; }

Property Value

Type: System.String

A comma-separated list containing the module type name and the assembly information.

To find the assembly defined by the Type, ASP.NET searches for the assembly DLL first in the application's private \bin directory, and then in the system assembly cache.

The following code example shows how to access the Type property.

// Get the modules collection.
HttpModuleActionCollection httpModules2 = 
string typeFound = "typeName not found.";

// Find the module with the specified type.
foreach (HttpModuleAction currentModule in httpModules2)
    if (currentModule.Type == "typeName")
        typeFound = "typeName found.";

.NET Framework
Available since 2.0
Return to top