DeviceInfoCollection 类

表示设备信息设置的集合。

继承层次结构

Object
  Collection<DeviceInfo>
    KeyedCollection<String, DeviceInfo>
      Microsoft.Reporting.WebForms.DeviceInfoCollection

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
Public NotInheritable Class DeviceInfoCollection _
    Inherits KeyedCollection(Of String, DeviceInfo)
[SerializableAttribute]
[ComVisibleAttribute(false)]
public sealed class DeviceInfoCollection : KeyedCollection<string, DeviceInfo>
[SerializableAttribute]
[ComVisibleAttribute(false)]
public ref class DeviceInfoCollection sealed : public KeyedCollection<String^, DeviceInfo^>
[<Sealed>]
[<SerializableAttribute>]
[<ComVisibleAttribute(false)>]
type DeviceInfoCollection =  
    class
        inherit KeyedCollection<string, DeviceInfo>
    end
public final class DeviceInfoCollection extends KeyedCollection<String, DeviceInfo>

DeviceInfoCollection 类型公开以下成员。

属性

  名称 说明
公共属性 Comparer 获取用于确定集合中的键是否相等的泛型相等比较器。 (继承自 KeyedCollection<String, DeviceInfo>。)
公共属性 Count 获取 Collection 中实际包含的元素数。 (继承自 Collection<DeviceInfo>。)
公共属性 Item(UTP) 获取具有指定键的元素。 (继承自 KeyedCollection<String, DeviceInfo>。)
公共属性 Item(Int32) 获取或设置位于指定索引处的元素。 (继承自 Collection<DeviceInfo>。)

页首

方法

  名称 说明
公共方法 Add(UTP) 将对象添加到 Collection 的结尾处。 (继承自 Collection<DeviceInfo>。)
公共方法 Add(String, String) 使用指定的名称和值将 DeviceInfo 对象添加到集合。
公共方法 Clear 从 Collection 中移除所有元素。 (继承自 Collection<DeviceInfo>。)
公共方法 Contains(UTP) 确定集合是否包含具有指定键的元素。 (继承自 KeyedCollection<String, DeviceInfo>。)
公共方法 Contains(UTP) 确定某元素是否在 Collection 中。 (继承自 Collection<DeviceInfo>。)
公共方法 CopyTo 从目标数组的指定索引处开始将整个 Collection 复制到兼容的一维 Array。 (继承自 Collection<DeviceInfo>。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetEnumerator 返回循环访问 Collection 的枚举数。 (继承自 Collection<DeviceInfo>。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IndexOf 搜索指定的对象,并返回整个 Collection 中第一个匹配项的从零开始的索引。 (继承自 Collection<DeviceInfo>。)
公共方法 Insert 将元素插入 Collection 的指定索引处。 (继承自 Collection<DeviceInfo>。)
公共方法 Remove(UTP) 从 KeyedCollection 中移除带有指定键的元素。 (继承自 KeyedCollection<String, DeviceInfo>。)
公共方法 Remove(UTP) 从 Collection 中移除特定对象的第一个匹配项。 (继承自 Collection<DeviceInfo>。)
公共方法 RemoveAt 移除 Collection 的指定索引处的元素。 (继承自 Collection<DeviceInfo>。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 System#Collections#IList#Add 将某项添加到 IList 中。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#IList#Contains 确定 IList 是否包含特定值。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#ICollection#CopyTo 从特定的 Array 索引处开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#IEnumerable#GetEnumerator 返回一个循环访问集合的枚举器。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#IList#IndexOf 确定 IList 中特定项的索引。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#IList#Insert 将某项插入 IList 中指定的索引处。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#IList#IsFixedSize 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#Generic#ICollection{T}#IsReadOnly 获取一个值,该值指示 ICollection 是否为只读。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#IList#IsReadOnly 获取一个值,该值指示 IList 是否为只读。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#ICollection#IsSynchronized 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#IList#Item 获取或设置位于指定索引处的元素。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有方法 System#Collections#IList#Remove 从 IList 中移除特定对象的第一个匹配项。 (继承自 Collection<DeviceInfo>。)
显式接口实现私有属性 System#Collections#ICollection#SyncRoot 获取可用于同步对 ICollection 的访问的对象。 (继承自 Collection<DeviceInfo>。)

页首

备注

此类由 ReportViewer 中的 InteractiveDeviceInfos 属性引用。

集合中的键表示设备信息设置的名称。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.Reporting.WebForms 命名空间