HttpModulesSection (clase)
Contiene módulos ASP.NET.
Sintaxis
class HttpModulesSection : ConfigurationSectionWithCollection
Métodos
En la tabla siguiente se enumeran los métodos que expone la clase HttpModulesSection
.
Nombre | Descripción |
---|---|
Add (Agregar) | (Se hereda de ConfigurationSectionWithCollection). |
Borrar | (Se hereda de ConfigurationSectionWithCollection ). |
Get | (Se hereda de ConfigurationSectionWithCollection ). |
GetAllowDefinition | (Se hereda de ConfigurationSection). |
GetAllowLocation | (Se hereda de ConfigurationSection ). |
Remove | (Se hereda de ConfigurationSectionWithCollection ). |
RevertToParent | (Se hereda de ConfigurationSection ). |
SetAllowDefinition | (Se hereda de ConfigurationSection ). |
SetAllowLocation | (Se hereda de ConfigurationSection ). |
Propiedades
La siguiente tabla muestra las propiedades expuestas por la clase HttpModulesSection
.
Nombre | Descripción |
---|---|
Location |
(Se hereda de ConfigurationSection ). Una propiedad clave. |
HttpModules |
Matriz de valores HttpModuleAction que contienen módulos ASP.NET. |
Path |
(Se hereda de ConfigurationSection ). Una propiedad clave. |
SectionInformation |
(Se hereda de ConfigurationSection ). |
Subclases
Esta clase no contiene subclases.
Comentarios
Los módulos de la clase HttpModulesSection
son específicos de ASP.NET y se encuentran en la sección <system.web>
del archivo Web.config. Cada uno de estos módulos se representa mediante una instancia de la clase HttpModuleAction.
Los módulos de la clase ModulesSection están relacionados con IIS 7 y se encuentran en la sección <system.webServer>
del archivo ApplicationHost.config. Cada uno de estos módulos se representa mediante una instancia de la clase ModuleAction.
Ejemplo
En el ejemplo siguiente se muestran las propiedades HttpModulesSection
, incluidos los valores HttpModuleAction
que se encuentran en la propiedad HttpModules
.
' 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 Path and Location properties.
WScript.Echo "Path: " & oSection.Path
WScript.Echo "Location: " & oSection.Location
WScript.Echo
' Display the HttpModuleAction instances that are contained
' in the HttpModules property.
WScript.Echo "----------( Http Modules )----------"
Counter = 0
For Each oHttpModule In oSection.HttpModules
Counter = Counter + 1
WScript.Echo "[" & Counter & "] Name: " & oHttpModule.Name
WScript.Echo "Type: " & oHttpModule.Type
WScript.Echo
Next
Jerarquía de herencia
ConfigurationSectionWithCollection
HttpModulesSection
Requisitos
Tipo | Descripción |
---|---|
Remoto | - IIS 7.0 en Windows Vista - IIS 7.5 en Windows 7 - IIS 8.0 en Windows 8 - IIS 10.0 en Windows 10 |
Server | - IIS 7.0 en Windows Server 2008 - IIS 7.5 en Windows Server 2008 R2 - IIS 8.0 en Windows Server 2012 - IIS 8.5 en Windows Server 2012 R2 - IIS 10.0 en Windows Server 2016 |
Producto | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
Archivo MOF | WebAdministration.mof |
Consulte también
ConfigurationSectionWithCollection (clase)
HttpModuleAction (clase)
ModuleAction (clase)
ModulesSection (clase)