HttpModuleAction クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HttpModulesSection モジュールを構成します。 このクラスは継承できません。
public ref class HttpModuleAction sealed : System::Configuration::ConfigurationElement
public sealed class HttpModuleAction : System.Configuration.ConfigurationElement
type HttpModuleAction = class
inherit ConfigurationElement
Public NotInheritable Class HttpModuleAction
Inherits ConfigurationElement
- 継承
例
この例では、add セクションのhttpModules要素のいくつかの属性に対して宣言によって値を指定する方法を示します。この属性は、HttpModuleAction クラスのメンバーとしてもアクセスできます。
次の構成ファイルの例は、 httpModules セクションに対して宣言によって値を指定する方法を示しています。
HTTP モジュールを作成および構成する方法については、「方法: HTTP モジュールを作成して構成する」を参照してください。
<httpModules>
<add name="TimerModule"
type="Samples.Aspnet.Configuration.RequestTimeInterval, RequestTimeInterval Version=1.0.1557.23158, Culture=neutral,
PublicKeyToken=7bfb33146a87b52e, processorArchitecture=MSIL"/>
</httpModules>
次のコード例は、 HttpModuleAction クラスの使用方法を示しています。
// 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 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)
注釈
HttpModuleAction クラスは、構成ファイルの add セクションのhttpModules要素にプログラムでアクセスして変更する方法を提供します。
HttpModuleAction型は、HttpModuleActionCollection、コレクション、およびHttpModulesSection型を含むグループの一部です。
コンストラクター
| 名前 | 説明 |
|---|---|
| HttpModuleAction(String, String) |
渡されたパラメーターを使用して、 HttpModuleAction クラスの新しいインスタンスを初期化します。 |