Share via


PropertyExpression Class

Represents a key-value pair of search properties that has an optional property expression operator.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITesting.PropertyExpression

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

Syntax

'Declaration
Public Class PropertyExpression _
    Implements ICloneable, INotifyPropertyChanged
public class PropertyExpression : ICloneable, 
    INotifyPropertyChanged
public ref class PropertyExpression : ICloneable, 
    INotifyPropertyChanged
type PropertyExpression =  
    class 
        interface ICloneable 
        interface INotifyPropertyChanged 
    end
public class PropertyExpression implements ICloneable, INotifyPropertyChanged

The PropertyExpression type exposes the following members.

Constructors

  Name Description
Public method PropertyExpression() Initializes a new instance of the PropertyExpression class.
Public method PropertyExpression(String, String) Initializes a new instance of the PropertyExpression class by using the provided property name and value.
Public method PropertyExpression(String, String, PropertyExpressionOperator) Initializes a new instance of the PropertyExpression class by using the provided property name, value to search for, and property operator.

Top

Properties

  Name Description
Public property PropertyName The name of the property to search for.
Public property PropertyOperator Gets the operator to use to search for a property that has the specified property value.
Public property PropertyValue Gets or sets the property value to search for.

Top

Methods

  Name Description
Public method Clone Returns a copy of the current instance.
Public method Equals Determines whether the provided object is equal to the current instance. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Overrides Object.GetHashCode.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string representation of the PropertyExpression object. (Overrides Object.ToString.)

Top

Events

  Name Description
Public event PropertyChanged Occurs when the value of a property value of this object has 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

PropertyExpressionOperator