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합니다.
생성자
HttpHandlersSection() |
HttpHandlersSection 클래스의 새 인스턴스를 초기화합니다. |