语言

PropertyExpressionCollection 类

定义

表示 PropertyExpression 对象集合。

public ref class PropertyExpressionCollection sealed : System::Collections::CollectionBase, ICloneable, System::Collections::Generic::ICollection<Microsoft::VisualStudio::TestTools::UITesting::PropertyExpression ^>, System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::TestTools::UITesting::PropertyExpression ^>, System::Collections::Specialized::INotifyCollectionChanged
public sealed class PropertyExpressionCollection : System.Collections.CollectionBase, ICloneable, System.Collections.Generic.ICollection<Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression>, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression>, System.Collections.Specialized.INotifyCollectionChanged
type PropertyExpressionCollection = class
    inherit CollectionBase
    interface ICloneable
    interface ICollection<PropertyExpression>
    interface seq<PropertyExpression>
    interface IEnumerable
    interface INotifyCollectionChanged
Public NotInheritable Class PropertyExpressionCollection
Inherits CollectionBase
Implements ICloneable, ICollection(Of PropertyExpression), IEnumerable(Of PropertyExpression), INotifyCollectionChanged
继承
PropertyExpressionCollection
实现

构造函数

PropertyExpressionCollection()

初始化 PropertyExpressionCollection 类的新实例。

属性

IsReadOnly

返回一个值,该值指示此实例是否为只读。

Item[String]

返回与提供的属性名称对应的属性表达式。

方法

Add(PropertyExpression)

将提供的属性表达式添加到集合中。

Add(String, String)

使用提供的属性名称和属性值将属性 express 添加到集合。

Add(String, String, PropertyExpressionOperator)

使用提供的属性名称、值和运算符添加属性表达式。

Add(String[])

为所提供的名称/值对数组中的每个对将属性表达式添加到集合中。

AddRange(PropertyExpression[])

将提供的参数数组中的所有属性表达式添加到当前集合。

AddRange(PropertyExpressionCollection)

将所提供的集合中的所有属性表达式添加到当前集合。

Clone()

返回当前集合的副本。

Contains(PropertyExpression)

确定集合是否包含提供的属性表达式对象。

Contains(String)

确定集合是否包含提供的属性表达式对象。

CopyTo(PropertyExpression[], Int32)

从指定的索引开始,将所提供的属性表达式数组复制到集合中。

Equals(Object)

确定提供的对象是否等于当前实例。

Find(String)

返回一个属性表达式对象,该对象具有与提供的属性名称匹配的属性名称。

GetEnumerator()

表示 PropertyExpression 对象集合。

GetHashCode()

表示 PropertyExpression 对象集合。

Remove(PropertyExpression)

从集合中删除提供的属性表达式。

Remove(String)

从集合中删除指定的属性表达式。

事件

CollectionChanged

在添加、删除或修改集合的项时发生。

扩展方法

EmptyIfNull<T>(IEnumerable<T>)

如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。

适用于