IgnoreDeviceFilterElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
配置裝置濾波元件。
public ref class IgnoreDeviceFilterElement sealed : System::Configuration::ConfigurationElement
public sealed class IgnoreDeviceFilterElement : System.Configuration.ConfigurationElement
type IgnoreDeviceFilterElement = class
inherit ConfigurationElement
Public NotInheritable Class IgnoreDeviceFilterElement
Inherits ConfigurationElement
- 繼承
範例
以下範例說明如何透過設定檔中的 filter 元素,設定識別裝置特定內容的過濾器標籤,ASP.NET 在渲染頁面時必須忽略這些內容。
<system.web>
<pages>
<ignoreDeviceFilters>
<filter name="TagA"/>
<filter name="TagB"/>
</ignoreDeviceFilters>
</pages>
</system.web>
備註
使用 IgnoreDeviceFilterElement 類別指示 ASP.NET 忽略你指定的裝置過濾標籤所界定的內容。
建構函式
| 名稱 | Description |
|---|---|
| IgnoreDeviceFilterElement(String) |
初始化 IgnoreDeviceFilterElement 類別的新執行個體。 |