HttpHandlersSection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
웹 애플리케이션에 대한 HTTP 처리기를 구성합니다. 이 클래스는 상속할 수 없습니다.
public ref class HttpHandlersSection sealed : System::Configuration::ConfigurationSection
public sealed class HttpHandlersSection : System.Configuration.ConfigurationSection
type HttpHandlersSection = class
inherit ConfigurationSection
Public NotInheritable Class HttpHandlersSection
Inherits ConfigurationSection
- 상속
예제
다음 코드 예제에서는 클래스를 HttpHandlersSection 사용하여 기존 웹 애플리케이션의 섹션에 httpHandlers 액세스하는 방법을 보여줍니다.
// Get the Web application configuration.
System.Configuration.Configuration configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the section.
System.Web.Configuration.HttpHandlersSection httpHandlersSection = (System.Web.Configuration.HttpHandlersSection) configuration.GetSection("system.web/httphandlers");
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest")
' Get the section.
Dim httpHandlersSection As System.Web.Configuration.HttpHandlersSection = CType(configuration.GetSection("system.web/httphandlers"), System.Web.Configuration.HttpHandlersSection)
다음 구성에서 발췌한 내용은 섹션에 대해 선언적으로 값을 지정하는 httpHandlers 방법을 보여줍니다.
<httpHandlers>
<add path="Calculator.custom"
type="Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler"
verb="GET" validate="false" />
</httpHandlers>
설명
클래스는 HttpHandlersSection 프로그래밍 방식으로 액세스 하 고 구성 파일의 섹션을 httpHandlers 수정 하는 방법을 제공 합니다. 이 형식은 형식과 HttpHandlerAction 형식을 HttpHandlerActionCollection 포함하는 그룹의 일부입니다.
메모
값이 HttpHandlersSection 있는 섹션 속성에 따라 AllowDefinition 구성 파일의 관련 섹션에서 정보를 읽고 쓸 수 있습니다 Everywhere.
생성자
| 속성 | Description |
|---|---|
| HttpHandlersSection() |
HttpHandlersSection 클래스의 새 인스턴스를 초기화합니다. |