通过


DeviceElement 类

定义

注意

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 DeviceElement sealed : System::Configuration::ConfigurationElement
public sealed class DeviceElement : 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 DeviceElement : System.Configuration.ConfigurationElement
type DeviceElement = 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 DeviceElement = class
    inherit ConfigurationElement
Public NotInheritable Class DeviceElement
Inherits ConfigurationElement
继承
属性

注解

此类表示 device XML 配置文件中的元素。

构造函数

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

使用设置为继承的指定标识符、页面适配器和设备适配器初始化类的新实例 DeviceElement 。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

DeviceElement(String, String)
已过时.

使用要继承的指定标识符和设备适配器初始化类的新实例 DeviceElement 。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

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

使用指定的标识符和页面适配器初始化类的新实例 DeviceElement 。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

属性

名称 说明
Controls
已过时.

获取此设备元素的控制元素的集合。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

CurrentConfiguration
已过时.

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

(继承自 ConfigurationElement)
ElementInformation
已过时.

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

(继承自 ConfigurationElement)
ElementProperty
已过时.

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

(继承自 ConfigurationElement)
EvaluationContext
已过时.

获取 ContextInformation 对象的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
HasContext
已过时.

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

(继承自 ConfigurationElement)
InheritsFrom
已过时.

获取或设置此设备适配器集继承的设备适配器集的名称。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Item[ConfigurationProperty]
已过时.

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

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

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

(继承自 ConfigurationElement)
LockAllAttributesExcept
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockAllElementsExcept
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockAttributes
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockElements
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockItem
已过时.

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

(继承自 ConfigurationElement)
Name
已过时.

获取唯一标识设备适配器集的字符串值。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

PageAdapter
已过时.

获取此设备适配器集的页面适配器类的类型。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

PredicateClass
已过时.

获取或设置包含用于检测设备适配器集是否适用的方法的类。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

PredicateMethod
已过时.

获取或设置用于通过当前 HttpContext 实例检测设备适配器集是否适用的方法。 此 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)

适用于

另请参阅