Share via


HttpHandlersSection.Handlers プロパティ

定義

HttpHandlerActionCollection オブジェクトに格納されている HttpHandlerAction オブジェクトの HttpHandlersSection コレクションを取得します。

public:
 property System::Web::Configuration::HttpHandlerActionCollection ^ Handlers { System::Web::Configuration::HttpHandlerActionCollection ^ get(); };
[System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)]
public System.Web.Configuration.HttpHandlerActionCollection Handlers { get; }
[<System.Configuration.ConfigurationProperty("", IsDefaultCollection=true)>]
member this.Handlers : System.Web.Configuration.HttpHandlerActionCollection
Public ReadOnly Property Handlers As HttpHandlerActionCollection

プロパティ値

HttpHandlerActionCollection オブジェクト (つまり、ハンドラー) を格納している HttpHandlerAction

属性

次のコード例は、ハンドラーにアクセスする方法を HttpHandlerAction 示しています。

// Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
HttpHandlerAction httpHandler = httpHandlers[0];
' Get a HttpHandlerAction in the Handlers property HttpHandlerAction collection.
Dim httpHandler As HttpHandlerAction = httpHandlers(0)

注釈

このメソッドによって返されるプロパティ コレクションは Handlers 、基になる構成ファイル内の実際の要素を参照しません。 これは、 System.Web.Configuration 含まれているハンドラーに簡単にアクセスできるコンストラクトです。 これは、構成ファイルの要素を処理するための一般的なパターンです。

適用対象

こちらもご覧ください