IgnoreDeviceFilterElementCollection 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表一組 IgnoreDeviceFilterElement 物件。 此類別無法獲得繼承。
public ref class IgnoreDeviceFilterElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.IgnoreDeviceFilterElement), AddItemName="filter", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)]
public sealed class IgnoreDeviceFilterElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.Configuration.IgnoreDeviceFilterElement), AddItemName="filter", CollectionType=System.Configuration.ConfigurationElementCollectionType.BasicMap)>]
type IgnoreDeviceFilterElementCollection = class
inherit ConfigurationElementCollection
Public NotInheritable Class IgnoreDeviceFilterElementCollection
Inherits ConfigurationElementCollection
- 繼承
- 屬性
範例
以下範例說明如何在設定檔中設定 ignoreDeviceFilters 區段,以指定渲染頁面時 ASP.NET 應忽略哪些標籤。
<system.web>
<pages>
<ignoreDeviceFilters>
<filter name="TagA"/>
<filter name="TagB"/>
</ignoreDeviceFilters>
</pages>
</system.web>
建構函式
| 名稱 | Description |
|---|---|
| IgnoreDeviceFilterElementCollection() |
初始化 IgnoreDeviceFilterElementCollection 類別的新執行個體。 |
屬性
方法
明確介面實作
| 名稱 | Description |
|---|---|
| ICollection.CopyTo(Array, Int32) |
將 ConfigurationElementCollection 複製到陣列。 (繼承來源 ConfigurationElementCollection) |
擴充方法
| 名稱 | Description |
|---|---|
| AsParallel(IEnumerable) |
啟用查詢的平行處理。 |
| AsQueryable(IEnumerable) |
將 IEnumerable 轉換成 IQueryable。 |
| Cast<TResult>(IEnumerable) |
將 IEnumerable 的項目轉換成指定的型別。 |
| OfType<TResult>(IEnumerable) |
根據指定的型別篩選 IEnumerable 的專案。 |