UITestControlCollection 类

包含 UITestControl 可搜索的属性。

继承层次结构

Object
  CollectionBase
    Microsoft.VisualStudio.TestTools.UITesting.UITestControlCollection

命名空间:  Microsoft.VisualStudio.TestTools.UITesting
程序集:   Microsoft.VisualStudio.TestTools.UITesting(在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting(在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)

语法

声明
<CLSCompliantAttribute(True)> _
Public Class UITestControlCollection _
    Inherits CollectionBase _
    Implements ICollection(Of UITestControl), IEnumerable(Of UITestControl),  _
    IEnumerable
[CLSCompliantAttribute(true)]
public class UITestControlCollection : CollectionBase, 
    ICollection<UITestControl>, IEnumerable<UITestControl>, IEnumerable
[CLSCompliantAttribute(true)]
public ref class UITestControlCollection : public CollectionBase, 
    ICollection<UITestControl^>, IEnumerable<UITestControl^>, IEnumerable
[<CLSCompliantAttribute(true)>]
type UITestControlCollection =  
    class 
        inherit CollectionBase 
        interface ICollection<UITestControl>
        interface IEnumerable<UITestControl>
        interface IEnumerable 
    end
public class UITestControlCollection extends CollectionBase implements ICollection<UITestControl>, IEnumerable<UITestControl>, IEnumerable

UITestControlCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 UITestControlCollection

页首

属性

  名称 说明
公共属性 Capacity 获取或设置 CollectionBase 可包含的元素数。 (继承自 CollectionBase。)
公共属性 Capacity
公共属性 Count 获取包含在 CollectionBase 实例中的元素数。不能重写此属性。 (继承自 CollectionBase。)
公共属性 Count
受保护的属性 InnerList 获取一个 ArrayList,它包含 CollectionBase 实例中元素的列表。 (继承自 CollectionBase。)
公共属性 IsReadOnly
公共属性 Item
受保护的属性 List 获取一个 IList,它包含 CollectionBase 实例中元素的列表。 (继承自 CollectionBase。)

页首

方法

  名称 说明
公共方法 Add
公共方法 Clear CollectionBase 实例移除所有对象。不能重写此方法。 (继承自 CollectionBase。)
公共方法 Clear()
公共方法 Contains
公共方法 CopyTo
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetEnumerator
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetNamesOfControls
公共方法 GetPropertyValuesOfControls<T>
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValuesOfControls
公共方法 IndexOf
公共方法 Insert
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnClear 当清除 CollectionBase 实例的内容时执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnClearComplete 在清除 CollectionBase 实例的内容之后执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnInsert 在向 CollectionBase 实例中插入新元素之前执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnInsertComplete 在向 CollectionBase 实例中插入新元素之后执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnRemove 当从 CollectionBase 实例移除元素时执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnRemoveComplete 在从 CollectionBase 实例中移除元素之后执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnSet 当在 CollectionBase 实例中设置值之前执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnSetComplete 当在 CollectionBase 实例中设置值后执行其他自定义进程。 (继承自 CollectionBase。)
受保护的方法 OnValidate 当验证值时执行其他自定义进程。 (继承自 CollectionBase。)
公共方法 Remove
公共方法 RemoveAll
公共方法 RemoveAt(Int32) 移除 CollectionBase 实例的指定索引处的元素。此方法不可重写。 (继承自 CollectionBase。)
公共方法 RemoveAt(Int32)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IEnumerable.GetEnumerator
显式接口实现私有方法 System#Collections#IList#Add 将对象添加到 CollectionBase 的结尾处。 (继承自 CollectionBase。)
显式接口实现私有方法 System#Collections#IList#Contains 确定 CollectionBase 是否包含特定元素。 (继承自 CollectionBase。)
显式接口实现私有方法 System#Collections#ICollection#CopyTo 从目标数组的指定索引处开始将整个 CollectionBase 复制到兼容的一维 Array。 (继承自 CollectionBase。)
显式接口实现私有方法 System#Collections#IList#IndexOf 搜索指定的 Object,并返回整个 CollectionBase 中第一个匹配项的从零开始的索引。 (继承自 CollectionBase。)
显式接口实现私有方法 System#Collections#IList#Insert 将元素插入 CollectionBase 的指定索引处。 (继承自 CollectionBase。)
显式接口实现私有属性 System#Collections#IList#IsFixedSize 获取一个值,该值指示 CollectionBase 是否具有固定大小。 (继承自 CollectionBase。)
显式接口实现私有属性 System#Collections#IList#IsReadOnly 获取一个值,该值指示 CollectionBase 是否为只读。 (继承自 CollectionBase。)
显式接口实现私有属性 System#Collections#ICollection#IsSynchronized 获取一个值,该值指示是否同步对 CollectionBase 的访问(线程安全)。 (继承自 CollectionBase。)
显式接口实现私有属性 System#Collections#IList#Item 获取或设置位于指定索引处的元素。 (继承自 CollectionBase。)
显式接口实现私有方法 System#Collections#IList#Remove CollectionBase 中移除特定对象的第一个匹配项。 (继承自 CollectionBase。)
显式接口实现私有属性 System#Collections#ICollection#SyncRoot 获取可用于同步对 CollectionBase 的访问的对象。 (继承自 CollectionBase。)

页首

备注

这里不会更新任何内容;请不要在这里添加材料。

线程安全

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

请参阅

参考

Microsoft.VisualStudio.TestTools.UITesting 命名空间