PropertyExpressionCollection 类
表示 PropertyExpression 对象的集合。
继承层次结构
System.Object
System.Collections.CollectionBase
Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionCollection
命名空间: Microsoft.VisualStudio.TestTools.UITesting
程序集: Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Public NotInheritable Class PropertyExpressionCollection _
Inherits CollectionBase _
Implements ICollection(Of PropertyExpression), IEnumerable(Of PropertyExpression), _
IEnumerable, ICloneable, INotifyCollectionChanged
public sealed class PropertyExpressionCollection : CollectionBase,
ICollection<PropertyExpression>, IEnumerable<PropertyExpression>, IEnumerable,
ICloneable, INotifyCollectionChanged
public ref class PropertyExpressionCollection sealed : public CollectionBase,
ICollection<PropertyExpression^>, IEnumerable<PropertyExpression^>, IEnumerable,
ICloneable, INotifyCollectionChanged
[<Sealed>]
type PropertyExpressionCollection =
class
inherit CollectionBase
interface ICollection<PropertyExpression>
interface IEnumerable<PropertyExpression>
interface IEnumerable
interface ICloneable
interface INotifyCollectionChanged
end
public final class PropertyExpressionCollection extends CollectionBase implements ICollection<PropertyExpression>, IEnumerable<PropertyExpression>, IEnumerable, ICloneable, INotifyCollectionChanged
PropertyExpressionCollection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
PropertyExpressionCollection | 初始化 PropertyExpressionCollection 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Capacity | 获取或设置 CollectionBase 可包含的元素数。 (继承自 CollectionBase。) |
![]() |
Count | 获取包含在 CollectionBase 实例中的元素数。不能重写此属性。 (继承自 CollectionBase。) |
![]() |
IsReadOnly | 返回一个值,该值指示此实例是否为只读。 |
![]() |
Item | 返回与提供的属性名对应的属性表达式。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Add(array<String[]) | 在集合中为所提供的名称/值对数组中的每一个名称/值对添加一个属性表达式。 |
![]() |
Add(PropertyExpression) | 将提供的属性表达式添加到集合中。 |
![]() |
Add(String, String) | 使用提供的属性名和属性值向集合中添加一个属性表达式。 |
![]() |
Add(String, String, PropertyExpressionOperator) | 使用提供的属性名、属性值和运算符添加一个属性表达式。 |
![]() |
AddRange(array<PropertyExpression[]) | 将所提供参数数组中的所有属性表达式添加到当前集合中。 |
![]() |
AddRange(PropertyExpressionCollection) | 将所提供集合中的所有属性表达式添加到当前集合中。 |
![]() |
Clear | 从 CollectionBase 实例移除所有对象。不能重写此方法。 (继承自 CollectionBase。) |
![]() |
Clone | 返回当前集合的副本。 |
![]() |
Contains(String) | 确定集合是否包含所提供的属性表达式对象。 |
![]() |
Contains(PropertyExpression) | 确定集合是否包含所提供的属性表达式对象。 |
![]() |
CopyTo | 将所提供的属性表达式数组中从指定索引位置开始的部分复制到集合中。 |
![]() |
Equals | 确定所提供的对象是否等于当前实例。 (重写 Object.Equals(Object)。) |
![]() |
Find | 返回其属性名与提供的属性名匹配的属性表达式对象。 |
![]() |
GetEnumerator | |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (重写 Object.GetHashCode()。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
Remove(String) | 从集合中移除指定的属性表达式。 |
![]() |
Remove(PropertyExpression) | 从集合中移除提供的属性表达式。 |
![]() |
RemoveAt | 移除 CollectionBase 实例的指定索引处的元素。此方法不可重写。 (继承自 CollectionBase。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
事件
名称 | 说明 | |
---|---|---|
![]() |
CollectionChanged | 在集合中添加、移除或修改项时发生。 |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IList.Add | 将对象添加到 CollectionBase 的结尾处。 (继承自 CollectionBase。) |
![]() ![]() |
IList.Contains | 确定 CollectionBase 是否包含特定元素。 (继承自 CollectionBase。) |
![]() ![]() |
ICollection.CopyTo | 从目标数组的指定索引处开始将整个 CollectionBase 复制到兼容的一维 Array。 (继承自 CollectionBase。) |
![]() ![]() |
IList.IndexOf | 搜索指定的 Object,并返回整个 CollectionBase 中第一个匹配项的从零开始的索引。 (继承自 CollectionBase。) |
![]() ![]() |
IList.Insert | 将元素插入 CollectionBase 的指定索引处。 (继承自 CollectionBase。) |
![]() ![]() |
IList.IsFixedSize | 获取一个值,该值指示 CollectionBase 是否具有固定大小。 (继承自 CollectionBase。) |
![]() ![]() |
IList.IsReadOnly | 获取一个值,该值指示 CollectionBase 是否为只读。 (继承自 CollectionBase。) |
![]() ![]() |
ICollection.IsSynchronized | 获取一个值,该值指示是否同步对 CollectionBase 的访问(线程安全)。 (继承自 CollectionBase。) |
![]() ![]() |
IList.Item | 获取或设置位于指定索引处的元素。 (继承自 CollectionBase。) |
![]() ![]() |
IList.Remove | 从 CollectionBase 中移除特定对象的第一个匹配项。 (继承自 CollectionBase。) |
![]() ![]() |
ICollection.SyncRoot | 获取可用于同步对 CollectionBase 的访问的对象。 (继承自 CollectionBase。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。