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。) | |
InnerList | 获取一个 ArrayList,它包含 CollectionBase 实例中元素的列表。 (继承自 CollectionBase。) | |
IsReadOnly | 返回一个值,该值指示此实例是否为只读。 | |
Item | 返回与提供的属性名对应的属性表达式。 | |
List | 获取一个 IList,它包含 CollectionBase 实例中元素的列表。 (继承自 CollectionBase。) |
页首
方法
页首
事件
名称 | 说明 | |
---|---|---|
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) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。