DeviceElementCollection 类

定义

注意

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.

DeviceElement 对象的集合。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public ref class DeviceElementCollection sealed : System::Configuration::ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.UI.MobileControls.DeviceElement), AddItemName="device")]
public sealed class DeviceElementCollection : System.Configuration.ConfigurationElementCollection
[System.Configuration.ConfigurationCollection(typeof(System.Web.UI.MobileControls.DeviceElement), AddItemName="device")]
[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 DeviceElementCollection : System.Configuration.ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.UI.MobileControls.DeviceElement), AddItemName="device")>]
type DeviceElementCollection = class
    inherit ConfigurationElementCollection
[<System.Configuration.ConfigurationCollection(typeof(System.Web.UI.MobileControls.DeviceElement), AddItemName="device")>]
[<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 DeviceElementCollection = class
    inherit ConfigurationElementCollection
Public NotInheritable Class DeviceElementCollection
Inherits ConfigurationElementCollection
继承
属性

注解

DeviceElementCollection 类包含从配置文件读取的对象集合 DeviceElement 。 有关配置文件的结构和内容的详细信息,请参阅 <mobileControls>

构造函数

名称 说明
DeviceElementCollection()
已过时.

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

属性

名称 说明
AddElementName
已过时.

获取或设置在派生类中重写时要与 ConfigurationElement 中的添加操作关联的 ConfigurationElementCollection 的名称。

(继承自 ConfigurationElementCollection)
AllKeys
已过时.

返回集合中包含的 DeviceElementCollection 设备元素的键数组。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

ClearElementName
已过时.

获取或设置在派生类中重写时要与 ConfigurationElement 中的清除操作关联的 ConfigurationElementCollection 的名称。

(继承自 ConfigurationElementCollection)
CollectionType
已过时.

获取此 DeviceElementCollection 对象的配置集合类型。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Count
已过时.

获取集合中的元素数。

(继承自 ConfigurationElementCollection)
CurrentConfiguration
已过时.

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

(继承自 ConfigurationElement)
ElementInformation
已过时.

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

(继承自 ConfigurationElement)
ElementName
已过时.

获取在派生类中重写时用于标识配置文件中此元素集合的名称。

(继承自 ConfigurationElementCollection)
ElementProperty
已过时.

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

(继承自 ConfigurationElement)
EmitClear
已过时.

获取或设置一个值,该值指定集合是否已清除。

(继承自 ConfigurationElementCollection)
EvaluationContext
已过时.

获取 ContextInformation 对象的 ConfigurationElement 对象。

(继承自 ConfigurationElement)
HasContext
已过时.

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

(继承自 ConfigurationElement)
IsSynchronized
已过时.

获取一个值,该值指示是否同步对集合的访问。

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

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

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

获取或设置位于指定索引位置的设备元素。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Item[String]
已过时.

返回具有指定键的设备元素。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

LockAllAttributesExcept
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockAllElementsExcept
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockAttributes
已过时.

获取锁定属性的集合。

(继承自 ConfigurationElement)
LockElements
已过时.

获取锁定元素的集合。

(继承自 ConfigurationElement)
LockItem
已过时.

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

(继承自 ConfigurationElement)
Properties
已过时.

获取属性的集合。

(继承自 ConfigurationElement)
RemoveElementName
已过时.

获取或设置在派生类中重写时要与 ConfigurationElement 中删除操作关联的 ConfigurationElementCollection 的名称。

(继承自 ConfigurationElementCollection)
SyncRoot
已过时.

获取一个对象,该对象用于同步对 ConfigurationElementCollection的访问。

(继承自 ConfigurationElementCollection)
ThrowOnDuplicate
已过时.

获取一个值,该值指示是否尝试向 ConfigurationElement 添加重复 ConfigurationElementCollection 将导致引发异常。

(继承自 ConfigurationElementCollection)

方法

名称 说明
Add(DeviceElement)
已过时.

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

BaseAdd(ConfigurationElement, Boolean)
已过时.

将配置元素添加到配置元素集合。

(继承自 ConfigurationElementCollection)
BaseAdd(ConfigurationElement)
已过时.

将配置元素添加到 ConfigurationElementCollection

(继承自 ConfigurationElementCollection)
BaseAdd(Int32, ConfigurationElement)
已过时.

将配置元素添加到配置元素集合。

(继承自 ConfigurationElementCollection)
BaseClear()
已过时.

从集合中删除所有配置元素对象。

(继承自 ConfigurationElementCollection)
BaseGet(Int32)
已过时.

获取位于指定索引位置的配置元素。

(继承自 ConfigurationElementCollection)
BaseGet(Object)
已过时.

返回具有指定键的配置元素。

(继承自 ConfigurationElementCollection)
BaseGetAllKeys()
已过时.

返回 ConfigurationElementCollection中包含的所有配置元素的键数组。

(继承自 ConfigurationElementCollection)
BaseGetKey(Int32)
已过时.

获取指定索引位置处 ConfigurationElement 的键。

(继承自 ConfigurationElementCollection)
BaseIndexOf(ConfigurationElement)
已过时.

指示指定 ConfigurationElement的索引。

(继承自 ConfigurationElementCollection)
BaseIsRemoved(Object)
已过时.

指示是否已从 ConfigurationElement中删除具有指定键的 ConfigurationElementCollection

(继承自 ConfigurationElementCollection)
BaseRemove(Object)
已过时.

从集合中删除 ConfigurationElement

(继承自 ConfigurationElementCollection)
BaseRemoveAt(Int32)
已过时.

删除位于指定索引位置的 ConfigurationElement

(继承自 ConfigurationElementCollection)
Clear()
已过时.

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

CopyTo(ConfigurationElement[], Int32)
已过时.

ConfigurationElementCollection 的内容复制到数组。

(继承自 ConfigurationElementCollection)
CreateNewElement()
已过时.

在派生类中重写时,创建新的 ConfigurationElement

(继承自 ConfigurationElementCollection)
CreateNewElement(String)
已过时.

在派生类中重写时创建新的 ConfigurationElement

(继承自 ConfigurationElementCollection)
DeserializeElement(XmlReader, Boolean)
已过时.

从配置文件中读取 XML。

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

ConfigurationElementCollection 与指定对象进行比较。

(继承自 ConfigurationElementCollection)
GetElementKey(ConfigurationElement)
已过时.

获取在派生类中重写时指定配置元素的元素键。

(继承自 ConfigurationElementCollection)
GetEnumerator()
已过时.

获取用于循环访问的IEnumerator一个 ConfigurationElementCollection

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

获取表示 ConfigurationElementCollection 实例的唯一值。

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

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

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

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

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

获取当前实例的 Type

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

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

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

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

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

指示指定的 ConfigurationElement 是否存在于 ConfigurationElementCollection中。

(继承自 ConfigurationElementCollection)
IsElementRemovable(ConfigurationElement)
已过时.

指示是否可以从 ConfigurationElement中删除指定的 ConfigurationElementCollection

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

指示在派生类中重写此 ConfigurationElementCollection 自上次保存或加载以来是否已修改。

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

指示 ConfigurationElementCollection 对象是否为只读。

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

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

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

创建当前 Object的浅表副本。

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

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

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

使配置系统引发异常。

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

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

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

反序列化后调用。

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

在序列化之前调用。

(继承自 ConfigurationElement)
Remove(DeviceElement)
已过时.

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

Remove(String)
已过时.

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

RemoveAt(Int32)
已过时.

删除指定索引处的设备元素。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Reset(ConfigurationElement)
已过时.

在派生类中重写时,将 ConfigurationElementCollection 重置为其未修改的状态。

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

在派生类中重写时,将 IsModified() 属性的值重置为 false

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

在派生类中重写时,将配置数据写入配置文件中的 XML 元素。

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

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

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

将属性设置为指定的值。

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

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

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

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

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

反转从配置层次结构的不同级别合并配置信息的效果。

(继承自 ConfigurationElementCollection)

显式接口实现

名称 说明
ICollection.CopyTo(Array, Int32)
已过时.

ConfigurationElementCollection 复制到数组。

(继承自 ConfigurationElementCollection)

扩展方法

名称 说明
AsParallel(IEnumerable)
已过时.

启用查询的并行化。

AsQueryable(IEnumerable)
已过时.

IEnumerable 转换为 IQueryable

Cast<TResult>(IEnumerable)
已过时.

IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)
已过时.

根据指定类型筛选 IEnumerable 的元素。

适用于

另请参阅