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

HttpHandlersSection クラス

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

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

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

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

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");


次の構成抜粋では、httpHandlers セクションに対して宣言によって値を指定する方法示してます。

<httpHandlers>
  <add path="Calculator.custom"
    type="Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler"
    verb="GET" validate="false" />
</httpHandlers> 
継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
     System.Configuration.ConfigurationSection
      System.Web.Configuration.HttpHandlersSection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpHandlersSection メンバ
System.Web.Configuration 名前空間
HttpHandlerActionCollection クラス
HttpHandlerAction クラス
その他の技術情報
httpHandlers 要素 (ASP.NET 設定スキーマ)
HTTP モジュール使用した ASP.NET 処理の拡張



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

辞書ショートカット

すべての辞書の索引

「HttpHandlersSection クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS