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