HttpModulesSection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
웹 애플리케이션에 대한 HTTP 모듈을 구성합니다. 이 클래스는 상속할 수 없습니다.
public ref class HttpModulesSection sealed : System::Configuration::ConfigurationSection
public sealed class HttpModulesSection : System.Configuration.ConfigurationSection
type HttpModulesSection = class
inherit ConfigurationSection
Public NotInheritable Class HttpModulesSection
Inherits ConfigurationSection
- 상속
예제
이 예제에서는 클래스의 멤버 add 로 액세스할 수도 있는 섹션 내 httpModules 요소의 특성에 HttpModulesSection 대해 선언적으로 값을 지정하는 방법을 보여 줍니다.
다음 구성 파일 예제에서는 httpModules 요소(ASP.NET 설정 스키마) 섹션에 대해 선언적으로 값을 지정하는 방법을 보여 줍니다.
<httpModules>
<add name="TimerModule"
type="Samples.Aspnet.Configuration.RequestTimeInterval, RequestTimeInterval Version=1.0.1557.23158, Culture=neutral,
PublicKeyToken=7bfb33146a87b52e, processorArchitecture=MSIL"/>
</httpModules>
다음 코드 예제에서는 클래스를 사용 하는 방법을 보여 줍니다 HttpModulesSection .
// Get the Web application configuration.
Configuration configuration = WebConfigurationManager.OpenWebConfiguration("/aspnetTest");
// Get the HttpModulesSection.
HttpModulesSection httpModulesSection = (HttpModulesSection) configuration.GetSection("system.web/httpModules");
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = WebConfigurationManager.OpenWebConfiguration("/aspnetTest")
' Get the HttpModulesSection.
Dim httpModulesSection As HttpModulesSection = CType(configuration.GetSection("system.web/httpModules"), HttpModulesSection)
설명
클래스는 HttpModulesSection 프로그래밍 방식으로 액세스 하 고 구성 파일의 섹션을 httpModules 수정 하는 방법을 제공 합니다.
이 형식은 형식과 HttpModuleAction 형식을 HttpModuleActionCollection 포함하는 그룹의 일부입니다.
메모
관련 섹션 속성인 HttpModulesSection의 값이 AllowDefinition일 때, Everywhere는 구성 파일의 해당 섹션에서 정보를 읽고 쓸 수 있습니다.
생성자
| Name | Description |
|---|---|
| HttpModulesSection() |
HttpModulesSection 클래스의 새 인스턴스를 초기화합니다. |