다음을 통해 공유


HttpHandlersSection 클래스

ASP.NET 처리기에 대한 설정을 구성합니다.

구문

class HttpHandlersSection : ConfigurationSectionWithCollection  

메서드

다음 표에서는 클래스에서 노출하는 메서드를 나열합니다 HttpHandlersSection .

속성 설명
추가 ConfigurationSectionWithCollection에서 상속됩니다.
지우기 ConfigurationSectionWithCollection에서 상속됩니다.
가져오기 ConfigurationSectionWithCollection에서 상속됩니다.
GetAllowDefinition ( ConfigurationSection에서 상속됩니다.)
GetAllowLocation ConfigurationSection에서 상속됩니다.
제거 ConfigurationSectionWithCollection에서 상속됩니다.
RevertToParent ConfigurationSection에서 상속됩니다.
SetAllowDefinition ConfigurationSection에서 상속됩니다.
SetAllowLocation ConfigurationSection에서 상속됩니다.

속성

다음 표에서는 클래스에서 노출하는 속성을 나열합니다 HttpHandlersSection .

속성 Description
HttpHandlers ASP.NET 처리기를 포함하는 HttpHandlerAction 값의 배열입니다.
Location (에서 ConfigurationSection상속됨) 키 속성입니다.
Path (에서 ConfigurationSection상속됨) 키 속성입니다.
SectionInformation ConfigurationSection에서 상속됩니다.

를 서브클래싱합니다.

이 클래스에는 하위 클래스가 없습니다.

설명

클래스에 HttpHandlersSection 포함된 HTTP 처리기는 ASP.NET 관련되며 Web.config 파일의 섹션에 있습니다 <system.web> . 이러한 각 처리기는 클래스의 HttpHandlerAction instance 표시됩니다.

HandlersSection 클래스의 HTTP 처리기는 IIS 7과 관련이 있으며 ApplicationHost.config 파일의 섹션에 있습니다<system.webServer>. 이러한 각 처리기는 HandlerAction 클래스의 instance 표시됩니다.

예제

다음 예제에서는 속성에 HttpHandlersSectionHttpHandlerAction 있는 HttpHandlers 값을 포함 하 여 속성을 표시 합니다.

' Connect to the WMI WebAdministration namespace.  
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")  
  
' Get the HttpHandlersSection.  
Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")  
oSite.GetSection "HttpHandlersSection", oSection  
  
' Display the Path and Location properties.  
WScript.Echo "Path: " & oSection.Path  
WScript.Echo "Location: " & oSection.Location  
WScript.Echo   
  
' Display the HttpHandlerAction instances that are contained  
' in the HttpHandlers property.  
WScript.Echo "----------( Http Handlers )----------"  
Counter = 0  
For Each oHttpHandler In oSection.HttpHandlers  
     Counter = Counter + 1  
     WScript.Echo "[" & Counter & "] Path: " & oHttpHandler.Path  
     WScript.Echo "Type: " & oHttpHandler.Type  
     WScript.Echo "Validate: " & oHttpHandler.Validate  
     WScript.Echo "Verb: " & oHttpHandler.Verb  
     WScript.Echo  
Next  
  

상속 계층 구조

ConfigurationSection

ConfigurationSectionWithCollection

HttpHandlersSection

요구 사항

형식 Description
클라이언트 - Windows Vista의 IIS 7.0
- Windows 7의 IIS 7.5
- Windows 8의 IIS 8.0
- WINDOWS 10 IIS 10.0
서버 - Windows Server 2008의 IIS 7.0
- Windows Server 2008 R2의 IIS 7.5
- Windows Server 2012의 IIS 8.0
- Windows Server 2012 R2의 IIS 8.5
- WINDOWS SERVER 2016 IIS 10.0
제품 - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0
MOF 파일 WebAdministration.mof

참고 항목

ConfigurationSectionWithCollection 클래스
HandlerAction 클래스
HandlersSection 클래스
HttpHandlerAction 클래스