HttpModuleAction.Type Property

Definition

Gets or sets the module type.

[System.Configuration.ConfigurationProperty("type", DefaultValue="", IsRequired=true)]
public string Type { get; set; }

Property Value

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

Attributes

Examples

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


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

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

Remarks

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.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1