HttpModuleAction クラスとは? わかりやすく解説

HttpModuleAction クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

HttpModulesSection モジュール構成します。このクラス継承できません。

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 HttpModuleAction
    Inherits ConfigurationElement
Dim instance As HttpModuleAction
public sealed class HttpModuleAction : ConfigurationElement
public ref class HttpModuleAction sealed :
 public ConfigurationElement
public final class HttpModuleAction extends
 ConfigurationElement
public final class HttpModuleAction extends
 ConfigurationElement
解説解説

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.Object
   System.Configuration.ConfigurationElement
    System.Web.Configuration.HttpModuleAction
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpModuleAction メンバ
System.Web.Configuration 名前空間
HttpModuleActionCollection
HttpModulesSection
その他の技術情報
httpModules 要素 (ASP.NET 設定スキーマ)
方法 : HTTP モジュール作成および構成する
HTTP モジュール使用した ASP.NET 処理の拡張



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HttpModuleAction クラス」の関連用語

HttpModuleAction クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpModuleAction クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS