言語

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 コンストラクトです。 これは、構成ファイルの要素を処理するための一般的なパターンです。

適用対象

こちらもご覧ください