語言

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 結構,讓使用者能輕鬆存取其所包含的處理器。 這是處理設定檔元素的常見模式。

適用於

另請參閱