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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照- HttpModulesSection.Modules プロパティのページへのリンク

 
                             
                    


