HttpModuleAction クラス
アセンブリ: System.Web (system.web.dll 内)


HttpModuleAction クラスを使用すると、構成ファイルの httpModules セクションの add 要素にプログラムからアクセスして変更できます。
HttpModuleAction 型は、HttpModuleActionCollection コレクションおよび HttpModulesSection 型を含むグループの一部です。

この例では、httpModules セクションの add 要素の複数の属性に対して、宣言によって値を指定する方法を示しています。これらの属性には、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. 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 Web application configuration. System.Configuration.Configuration configuration = WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. HttpModulesSection httpModulesSection = (HttpModulesSection) configuration.GetSection( "system.web/httpModules");

System.Configuration.ConfigurationElement
System.Web.Configuration.HttpModuleAction


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpModuleAction クラスのページへのリンク