Type Property
Collapse the table of content
Expand the table of content

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.";

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

© 2016 Microsoft