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要素にアクセスできます。
コンストラクター
| 名前 | 説明 |
|---|---|
| HttpModuleActionCollection() |
HttpModuleActionCollection クラスの新しいインスタンスを初期化します。 |
プロパティ
メソッド
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| ICollection.CopyTo(Array, Int32) |
ConfigurationElementCollection を配列にコピーします。 (継承元 ConfigurationElementCollection) |
拡張メソッド
| 名前 | 説明 |
|---|---|
| AsParallel(IEnumerable) |
クエリの並列化を有効にします。 |
| AsQueryable(IEnumerable) |
IEnumerable を IQueryableに変換します。 |
| Cast<TResult>(IEnumerable) |
IEnumerable の要素を指定した型にキャストします。 |
| OfType<TResult>(IEnumerable) |
指定した型に基づいて、IEnumerable の要素をフィルター処理します。 |