Share via


PropertyExpressionObservableCollection Class

Contains searchable properties of UITestControl.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.PropertyExpressionObservableCollection

Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public NotInheritable Class PropertyExpressionObservableCollection _
    Implements INotifyCollectionChanged
public sealed class PropertyExpressionObservableCollection : INotifyCollectionChanged
public ref class PropertyExpressionObservableCollection sealed : INotifyCollectionChanged
[<Sealed>]
type PropertyExpressionObservableCollection =  
    class 
        interface INotifyCollectionChanged 
    end
public final class PropertyExpressionObservableCollection implements INotifyCollectionChanged

The PropertyExpressionObservableCollection type exposes the following members.

Constructors

  Name Description
Public method PropertyExpressionObservableCollection Default constructor.

Top

Properties

  Name Description
Public property Count Gets the item count in the collection.
Public property IsReadOnly Gets if the collection is readonly
Public property Item Gets or sets the property value for search.

Top

Methods

  Name Description
Public method Add(array<String[]) Add multiple property, value pairs to property collection. If the property with same name already exists, then updates its value.
Public method Add(PropertyExpression) Add new PropertyExpression to the collection. If the property with same name already exists, then updates its value.
Public method Add(String, String) Add new property, value pair to property collection. If the property with same name already exists, then updates its value.
Public method Add(String, String, PropertyExpressionOperator) Add new property, value pair and a PropertyExpressionOperator to property collection. If the property with same name already exists, then updates its value.
Public method AddRange(array<PropertyExpression[]) Add a range of PropertyExpressions to the collection. If the property with same name already exists, then updates its value.
Public method AddRange(PropertyExpressionObservableCollection) Add a range of PropertyExpressions from another collection. If the property with same name already exists, then updates its value.
Public method Clear Clears the collection.
Public method Clone Creates a PropertyExpressionCollection which is a clone of the current instance.
Public method Contains(String) Check whether the given property is present in the collection
Public method Contains(PropertyExpression) Checks whether PropertyExpression with same name, value and operator is present in the collection
Public method CopyTo Copy collections to a PropertyExpression array.
Public method Equals Object.Equals override (Overrides Object.Equals(Object).)
Public method Find Returns the associated PropertyExpression in the collection for the given property name
Public method GetEnumerator Gets an enumerator to iterate through the collection
Public method GetHashCode Hashcode of the PropertyExpressionCollection (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Remove(String) Remove PropertyExpression with the given name from the collection.
Public method Remove(PropertyExpression) Removes the PropertyExpression with the same name, value and operator from the collection
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event CollectionChanged Event fired when this collection is changed.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.UITesting Namespace