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


HttpHandlersSection クラスを使用すると、構成ファイルの httpHandlers セクションにプログラムからアクセスして変更できます。この型は、HttpHandlerAction 型および HttpHandlerActionCollection 型を含むグループの一部です。
![]() |
---|
HttpHandlersSection は、値が Everywhere のセクション プロパティ AllowDefinition に従って、構成ファイル内の関連するセクションから情報を読み込んだり、このセクションに情報を書き込んだりできます。 |

HttpHandlersSection クラスを使用して、既存の Web アプリケーションの httpHandlers セクションにアクセスする方法を次のコード例に示します。
' Get the Web application configuration. Dim configuration As System.Configuration.Configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest") ' Get the section. Dim httpHandlersSection As System.Web.Configuration.HttpHandlersSection = CType(configuration.GetSection("system.web/httphandlers"), System.Web.Configuration.HttpHandlersSection)
// Get the Web application configuration. System.Configuration.Configuration configuration = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. System.Web.Configuration.HttpHandlersSection httpHandlersSection = (System.Web.Configuration.HttpHandlersSection) configuration.GetSection("system.web/httphandlers");

System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.HttpHandlersSection


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


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