通过


DeviceFilterElement 类

定义

注意

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

表示要应用于应用程序的特定于设备的筛选器。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public ref class DeviceFilterElement sealed : System::Configuration::ConfigurationElement
public sealed class DeviceFilterElement : System.Configuration.ConfigurationElement
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public sealed class DeviceFilterElement : System.Configuration.ConfigurationElement
type DeviceFilterElement = class
    inherit ConfigurationElement
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type DeviceFilterElement = class
    inherit ConfigurationElement
Public NotInheritable Class DeviceFilterElement
Inherits ConfigurationElement
继承
DeviceFilterElement
属性

注解

此类对应于 <filter> ASP.NET 设置架构部分的元素 <deviceFilters>

筛选器可以是比较筛选器,也可以是计算器筛选器。 基于比较的筛选器将开发人员指定的值与运行时设备功能的当前值进行比较。 计算器(或基于委托的)筛选器使用程序员指定的类中的方法来执行评估。

构造函数

名称 说明
DeviceFilterElement(String, String, String)
已过时.

将类的新实例 DeviceFilterElement 初始化为比较筛选器。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

DeviceFilterElement(String, Type, String)
已过时.

将类的新实例 DeviceFilterElement 初始化为计算器筛选器。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

属性

名称 说明
Argument
已过时.

获取或设置应对其比较功能的自变量。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Compare
已过时.

获取或设置由比较计算器计算的功能。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

CurrentConfiguration
已过时.

获取对顶级 Configuration 实例的引用,该实例表示当前 ConfigurationElement 实例所属的配置层次结构。

(继承自 ConfigurationElement)
ElementInformation
已过时.

获取一个 ElementInformation 对象,该对象包含 ConfigurationElement 对象的不可自定义信息和功能。

(继承自 ConfigurationElement)
ElementProperty
已过时.

获取表示 ConfigurationElementProperty 对象本身的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
EvaluationContext
已过时.

获取 ContextInformation 对象的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
FilterClass
已过时.

获取或设置包含计算器委托的类类型。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

HasContext
已过时.

获取一个值,该值指示 CurrentConfiguration 属性是否 null

(继承自 ConfigurationElement)
Item[ConfigurationProperty]
已过时.

获取或设置此配置元素的属性或属性。

(继承自 ConfigurationElement)
Item[String]
已过时.

获取或设置此配置元素的属性、属性或子元素。

(继承自 ConfigurationElement)
LockAllAttributesExcept
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockAllElementsExcept
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockAttributes
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockElements
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockItem
已过时.

获取或设置一个值,该值指示元素是否已锁定。

(继承自 ConfigurationElement)
Method
已过时.

获取或设置由用作计算器委托的属性指定的 FilterClass 类中的方法。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Name
已过时.

获取将标识计算器的名称。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Properties
已过时.

获取属性的集合。

(继承自 ConfigurationElement)

方法

名称 说明
DeserializeElement(XmlReader, Boolean)
已过时.

从配置文件中读取 XML。

(继承自 ConfigurationElement)
Equals(Object)
已过时.

将当前 ConfigurationElement 实例与指定对象进行比较。

(继承自 ConfigurationElement)
GetHashCode()
已过时.

获取表示当前 ConfigurationElement 实例的唯一值。

(继承自 ConfigurationElement)
GetTransformedAssemblyString(String)
已过时.

返回指定程序集名称的转换版本。

(继承自 ConfigurationElement)
GetTransformedTypeString(String)
已过时.

返回指定类型名称的转换版本。

(继承自 ConfigurationElement)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
Init()
已过时.

ConfigurationElement 对象设置为其初始状态。

(继承自 ConfigurationElement)
InitializeDefault()
已过时.

用于初始化 ConfigurationElement 对象的默认值集。

(继承自 ConfigurationElement)
IsModified()
已过时.

指示在派生类中实现此配置元素自上次保存或加载以来是否已修改此配置元素。

(继承自 ConfigurationElement)
IsReadOnly()
已过时.

获取一个值,该值指示对象 ConfigurationElement 是否为只读。

(继承自 ConfigurationElement)
ListErrors(IList)
已过时.

将此 ConfigurationElement 对象和所有子元素中的无效属性错误添加到传递的列表。

(继承自 ConfigurationElement)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
OnDeserializeUnrecognizedAttribute(String, String)
已过时.

获取一个值,该值指示在反序列化期间是否遇到未知属性。

(继承自 ConfigurationElement)
OnDeserializeUnrecognizedElement(String, XmlReader)
已过时.

获取一个值,该值指示在反序列化期间是否遇到未知元素。

(继承自 ConfigurationElement)
OnRequiredPropertyNotFound(String)
已过时.

在找不到所需属性时引发异常。

(继承自 ConfigurationElement)
PostDeserialize()
已过时.

反序列化后调用。

(继承自 ConfigurationElement)
PreSerialize(XmlWriter)
已过时.

在序列化之前调用。

(继承自 ConfigurationElement)
Reset(ConfigurationElement)
已过时.

重置对象的内部状态 ConfigurationElement ,包括锁和属性集合。

(继承自 ConfigurationElement)
ResetModified()
已过时.

将方法的值 IsModified() 重置为 false 在派生类中实现时的值。

(继承自 ConfigurationElement)
SerializeElement(XmlWriter, Boolean)
已过时.

在派生类中实现时,将此配置元素的内容写入配置文件。

(继承自 ConfigurationElement)
SerializeToXmlElement(XmlWriter, String)
已过时.

在派生类中实现时,将此配置元素的外部标记写入配置文件。

(继承自 ConfigurationElement)
SetPropertyValue(ConfigurationProperty, Object, Boolean)
已过时.

将属性设置为指定的值。

(继承自 ConfigurationElement)
SetReadOnly()
已过时.

IsReadOnly()设置对象和所有子元素的属性ConfigurationElement

(继承自 ConfigurationElement)
ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)
Unmerge(ConfigurationElement, ConfigurationElement, ConfigurationSaveMode)
已过时.

ConfigurationElement修改对象以删除不应保存的所有值。

(继承自 ConfigurationElement)

适用于

另请参阅