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

HttpModulesSection クラス

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

Web アプリケーションHTTP モジュール構成します。このクラス継承できません。

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

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

HttpModulesSection クラス使用すると、構成ファイルhttpModules セクションプログラムかアクセスして変更できます

この型は、HttpModuleAction 型および HttpModuleActionCollection 型を含むグループ一部です。

メモメモ

HttpModulesSection は、値が Everywhereセクション プロパティ AllowDefinition に従って構成ファイル関連するセクションから情報読み取ったり、このセクション情報書き込んだできます

使用例使用例

この例では、httpModules セクション内の add 要素属性に対して宣言によって値を指定する方法示してます。これらの属性には、HttpModulesSection クラスメンバとしてもアクセスできます

次の構成ファイルの例では、httpModules 要素 (ASP.NET 設定スキーマ) セクションに対して宣言によって値を指定する方法示してます。

<httpModules>
    <add name="TimerModule" 
      type="Samples.Aspnet.Configuration.RequestTimeInterval, RequestTimeInterval
 Version=1.0.1557.23158, Culture=neutral,
      PublicKeyToken=7bfb33146a87b52e, processorArchitecture=MSIL"/>
</httpModules>

HttpModulesSection クラス使用する方法次のコード例示します

HTTP モジュール構築構成方法を示す完全な例については、「方法 : HTTP モジュール作成および構成する」を参照してください

' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration
 = WebConfigurationManager.OpenWebConfiguration("/aspnetTest")

' Get the HttpModulesSection.
Dim httpModulesSection As HttpModulesSection
 = CType(configuration.GetSection("system.web/httpModules"),
 HttpModulesSection)

 
// Get the Web application configuration.
Configuration configuration = WebConfigurationManager.OpenWebConfiguration("/aspnetTest");

// Get the HttpModulesSection.
HttpModulesSection httpModulesSection = (HttpModulesSection) configuration.GetSection("system.web/httpModules");

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



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

辞書ショートカット

すべての辞書の索引

「HttpModulesSection クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS