HttpHandlerActionCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示 HttpHandlerAction 項目的集合。 此類別無法獲得繼承。
public ref class HttpHandlerActionCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.HttpHandlerAction), CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMapAlternate)]
public sealed class HttpHandlerActionCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.HttpHandlerAction), CollectionType=System.Configuration.ConfigurationElementCollectionType.AddRemoveClearMapAlternate)>]
type HttpHandlerActionCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class HttpHandlerActionCollection
Inherits ConfigurationElementCollection
- 繼承
- 屬性
範例
下列程式碼範例示範如何使用 HttpHandlerActionCollection 集合來存取組態檔 區 httpHandlers 段所包含的資訊。
// Get the handlers.
System.Web.Configuration.HttpHandlerActionCollection httpHandlers = httpHandlersSection.Handlers;
'Get the handlers.
Dim httpHandlers As System.Web.Configuration.HttpHandlerActionCollection = httpHandlersSection.Handlers
下列組態摘錄顯示如何以宣告方式指定 區 httpHandlers 段的值。
<httpHandlers>
<add path="Calculator.custom"
type="Samples.AspNet.SystemWebConfiguration.Calculator, CalculatorHandler"
verb="GET" validate="false" />
</httpHandlers>
備註
集合 HttpHandlerActionCollection 類型允許存取 HttpHandlerAction 組態區段的專案。
建構函式
| HttpHandlerActionCollection() |
初始化 HttpHandlerActionCollection 類別的新執行個體。 |
屬性
方法
明確介面實作
| ICollection.CopyTo(Array, Int32) |
將 ConfigurationElementCollection 複製至陣列。 (繼承來源 ConfigurationElementCollection) |
擴充方法
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別來篩選 IEnumerable 的項目。 |
| AsParallel(IEnumerable) |
啟用查詢的平行化作業。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |