HttpModuleActionCollection 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
개체의 HttpModuleAction 컬렉션을 나타냅니다. 이 클래스는 상속할 수 없습니다.
public ref class HttpModuleActionCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.HttpModuleAction))]
public sealed class HttpModuleActionCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.HttpModuleAction))>]
type HttpModuleActionCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class HttpModuleActionCollection
Inherits ConfigurationElementCollection
- 상속
- 특성
예제
다음 예제에서는 클래스를 사용하는 HttpModuleActionCollection 방법을 보여줍니다.
// Get the Web application configuration.
System.Configuration.Configuration configuration =
WebConfigurationManager.OpenWebConfiguration(
"/aspnetTest");
// Get the section.
HttpModulesSection httpModulesSection =
(HttpModulesSection)configuration.GetSection(
"system.web/httpModules");
// Get the collection.
HttpModuleActionCollection modulesCollection =
httpModulesSection.Modules;
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")
' Get the section.
Dim httpModulesSection As HttpModulesSection = _
CType(configuration.GetSection( _
"system.web/httpModules"), HttpModulesSection)
' Get the collection.
Dim modulesCollection _
As HttpModuleActionCollection = httpModulesSection.Modules
다음 예제는 ASP.NET 사용자 지정 모듈을 사용할 수 있도록 하는 구성 파일의 발췌입니다. HTTP 모듈을 빌드하고 구성하는 방법에 대한 전체 예제는 방법: HTTP 모듈 만들기 및 구성을 참조하세요.
<httpModules>
<add name="TimerModule"
type="Samples.AspNet.RequestTimeInterval, RequestTimeInterval Version=1.0.1557.23158, Culture=neutral,
PublicKeyToken=7bfb33146a87b52e, processorArchitecture=MSIL"/>
</httpModules>
설명
컬렉션을 HttpModuleActionCollection 사용하면 섹션의 요소에 HttpModuleAction 액세스할 수 있습니다 HttpModulesSection .
생성자
| Name | Description |
|---|---|
| HttpModuleActionCollection() |
HttpModuleActionCollection 클래스의 새 인스턴스를 초기화합니다. |
속성
메서드
명시적 인터페이스 구현
| Name | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
배열에 ConfigurationElementCollection 복사합니다. (다음에서 상속됨 ConfigurationElementCollection) |
확장명 메서드
| Name | Description |
|---|---|
| AsParallel(IEnumerable) |
쿼리의 병렬 처리를 사용하도록 설정합니다. |
| AsQueryable(IEnumerable) |
IEnumerable IQueryable변환합니다. |
| Cast<TResult>(IEnumerable) |
IEnumerable 요소를 지정된 형식으로 캐스팅합니다. |
| OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable 요소를 필터링합니다. |