HttpModulesSection.Modules プロパティ
アセンブリ: System.Web (system.web.dll 内)

HttpModulesSection によって定義されている HttpModuleAction オブジェクトつまりモジュールが格納された HttpModuleActionCollection。

このメソッドによって戻されるコレクションは、基になる構成ファイル内の実際の要素を参照しているわけではありません。このコレクションは、格納されているモジュールに簡単にアクセスできる構造になっている ASP.NET インフラストラクチャです。これは、構成ファイルの要素を処理するための共通のパターンです。

HttpModuleAction モジュールへのアクセス方法を次のコード例に示します。
' Get the modules collection. Dim httpModules As HttpModuleActionCollection = httpModulesSection.Modules ' Read the modules information. Dim modulesInfo As New StringBuilder() Dim i As Integer For i = 0 To httpModules.Count modulesInfo.Append(String.Format("Name: {0}" + vbLf + "Type: {1}" + vbLf + vbLf, httpModules(i).Name, httpModules(i).Type)) Next i
// Get the modules collection. HttpModuleActionCollection httpModules = httpModulesSection.Modules; // Read the modules information. StringBuilder modulesInfo = new StringBuilder(); for (int i = 0; i < httpModules.Count; i++) { modulesInfo.Append( string.Format("Name: {0}\nType: {1}\n\n", httpModules[i].Name, httpModules[i].Type)); }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHttpModulesSection.Modules プロパティを検索する場合は、下記のリンクをクリックしてください。

- HttpModulesSection.Modules プロパティのページへのリンク