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) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。