This documentation is archived and is not being maintained.

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

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.