Freigeben über


HttpModulesSection-Klasse

Enthält ASP.NET-Module.

Syntax

class HttpModulesSection : ConfigurationSectionWithCollection  

Methoden

In der folgenden Tabelle werden die Methoden aufgelistet, die von der HttpModulesSection Klasse verfügbar gemacht werden.

Name Beschreibung
Add (Hinzufügen) (Geerbt von ConfigurationSectionWithCollection.)
Clear (Geerbt von ConfigurationSectionWithCollection.)
Get (Geerbt von ConfigurationSectionWithCollection.)
GetAllowDefinition (Geerbt von ConfigurationSection.)
GetAllowLocation (Geerbt von ConfigurationSection.)
Remove (Geerbt von ConfigurationSectionWithCollection.)
RevertToParent (Geerbt von ConfigurationSection.)
SetAllowDefinition (Geerbt von ConfigurationSection.)
SetAllowLocation (Geerbt von ConfigurationSection.)

Eigenschaften

In der folgenden Tabelle sind die Eigenschaften aufgeführt, die von der HttpModulesSection Klasse verfügbar gemacht werden.

Name Beschreibung
Location (Geerbt von ConfigurationSection.) Eine Schlüsseleigenschaft.
HttpModules Ein Array von HttpModuleAction-Werten, die ASP.NET Module enthalten.
Path (Geerbt von ConfigurationSection.) Eine Schlüsseleigenschaft.
SectionInformation (Geerbt von ConfigurationSection.)

Unterklassen

Diese Klasse enthält keine Unterklassen.

Hinweise

Die Module in der HttpModulesSection Klasse sind spezifisch für ASP.NET und befinden sich im <system.web> Abschnitt der Web.config-Datei. Jedes dieser Module wird durch eine Instanz der HttpModuleAction- Klasse dargestellt.

Die Module in der ModulesSection-Klasse beziehen sich auf IIS 7 und befinden sich im <system.webServer> Abschnitt der ApplicationHost.config-Datei. Jedes dieser Module wird durch eine Instanz der ModuleAction-Klasse dargestellt.

Beispiel

Im folgenden Beispiel werden Eigenschaften HttpModulesSectionangezeigt, einschließlich der HttpModuleAction Werte, die sich in der HttpModules Eigenschaft befinden.

' 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  
  

Vererbungshierarchie

ConfigurationSection

ConfigurationSectionWithCollection

HttpModulesSection

Anforderungen

type Beschreibung
Client - IIS 7.0 unter Windows Vista
IIS 7.5 unter Windows 7
IIS 8.0 unter Windows 8
IIS 10.0 unter Windows 10
Server IIS 7.0 unter Windows Server 2008
- IIS 7.5 unter Windows Server 2008 R2
IIS 8.0 auf Windows Server 2012.
- IIS 8.5 unter Windows Server 2012 R2
IIS 10.0 auf Windows Server 2016.
Produkt - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF-Datei WebAdministration.mof

Weitere Informationen

ConfigurationSectionWithCollection-Klasse
HttpModuleAction-Klasse
ModuleAction-Klasse
ModulesSection-Klasse