title | description | ms.date | ms.assetid |
---|---|---|---|
HttpModuleAction Class |
Represents an ASP.NET module. |
10/07/2016 |
74ccab52-cc4b-a564-29be-dc629671b13c |
Represents an [!INCLUDEvstecasp] module.
class HttpModuleAction : CollectionElement
This class contains no methods.
The following table lists the properties exposed by the HttpModuleAction
class.
Name | Description |
---|---|
Name |
A read-only string value that specifies the name of an [!INCLUDEvstecasp] module. The key property. |
Type |
A read/write string value that specifies the type for an [!INCLUDEvstecasp] module. Note: The type reference is formed as follows (items in brackets are not required): Namespace.Typename, Assemblyname[,] [Version=x,] [Culture=y,] [PublicKeyToken=z] (for example, "ExampleNamespace.ExampleType, Example.Assembly, Version=%ASSEMBLY_VERSION%, Culture=neutral, PublicKeyToken=%MICROSOFT_PUBLICKEY%"). |
This class contains no subclasses.
Instances of this class are contained in the HttpModules
property of the HttpModulesSection class.
The modules represented by the HttpModuleAction
class are specific to [!INCLUDEvstecasp] and are in the <system.web>
section of the Web.config file. These modules are contained in the Modules
array property of the HttpModulesSection class.
The modules represented by the ModuleAction class are [!INCLUDEiisver] related and are in the <system.webServer>
section of the ApplicationHost.config file. These modules are contained in the ModulesSection class.
The following example displays the HttpModuleAction
values that are in the HttpModules
property of the HttpModulesSection
class.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the HttpModulesSection.
Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")
oSite.GetSection "HttpModulesSection", oSection
' Display the HttpModuleAction instances.
WScript.Echo "------[ Http Modules ]------"
For Each oHttpModule In oSection.HttpModules
WScript.Echo "Name: " & oHttpModule.Name
WScript.Echo "Type: " & oHttpModule.Type
WScript.Echo
Next
HttpModuleAction
Type | Description |
---|---|
Client | - [!INCLUDEiis70] on [!INCLUDEwinvista] - [!INCLUDEiis75] on [!INCLUDEwin7] - [!INCLUDEiis80] on [!INCLUDEwin8] - [!INCLUDEiis100] on [!INCLUDEwin10] |
Server | - [!INCLUDEiis70] on [!INCLUDEwinsrv2008] - [!INCLUDEiis75] on [!INCLUDEwinsrv2008r2] - [!INCLUDEiis80] on [!INCLUDEwinsrv2012] - [!INCLUDEiis85] on [!INCLUDEwinsrv2012r2] - [!INCLUDEiis100] on [!INCLUDEwinsrv2016] |
Product | - [!INCLUDEiis70], [!INCLUDEiis75], [!INCLUDEiis80], [!INCLUDEiis85], [!INCLUDEiis100] |
MOF file | WebAdministration.mof |
CollectionElement Class
HttpModulesSection Class
ModulesSection Class
ModuleAction Class