Share via


PropertyExpressionCollection Class

Definition

Represents a collection of PropertyExpression objects.

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
Inheritance
PropertyExpressionCollection
Implements

Constructors

PropertyExpressionCollection()

Initializes a new instance of the PropertyExpressionCollection class.

Properties

IsReadOnly

Returns a value that indicates whether this instance is read-only.

Item[String]

Returns the property expression that corresponds to the provided property name.

Methods

Add(PropertyExpression)

Adds the provided property expression to the collection.

Add(String, String, PropertyExpressionOperator)

Adds a property expression by using the provided property name, value, and operator.

Add(String, String)

Adds a property express to the collection by using the provided property name and property value.

Add(String[])

Adds a property expression to the collection for each pair in the provided array of name-value pairs.

AddRange(PropertyExpression[])

Adds all property expressions in the provided parameter array to the current collection.

AddRange(PropertyExpressionCollection)

Adds all property expressions in the provided collection to the current collection.

Clone()

Returns a copy of the current collection.

Contains(PropertyExpression)

Determines whether the collection contains the provided property expression object.

Contains(String)

Determines whether the collection contains the provided property expression object.

CopyTo(PropertyExpression[], Int32)

Copies the provided array of property expressions, starting at the specified index into the collection.

Equals(Object)

Determines whether the provided object is equal to the current instance.

Find(String)

Returns a property expression object that has a property name that matches the provided property name.

GetEnumerator()
GetHashCode()
Remove(PropertyExpression)

Removes the provided property expression from the collection.

Remove(String)

Removes the specified property expression from the collection.

Events

CollectionChanged

Occurs when an item of the collection is added, removed, or modified.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to