HttpHandlersSection.Handlers 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 結構,讓使用者能輕鬆存取其所包含的處理器。 這是處理設定檔元素的常見模式。