This documentation is archived and is not being maintained.

PropertyExpression Class

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


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

Public Class PropertyExpression _
	Implements ICloneable, INotifyPropertyChanged

The PropertyExpression type exposes the following members.

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

Public propertyPropertyNameThe name of the property to search for.
Public propertyPropertyOperatorGets the operator to use to search for a property that has the specified property value.
Public propertyPropertyValueGets or sets the property value to search for.

Public methodCloneReturns a copy of the current instance.
Public methodEqualsDetermines whether the provided object is equal to the current instance. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Overrides Object.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string representation of the PropertyExpression object. (Overrides Object.ToString.)

Public eventPropertyChangedOccurs when the value of a property value of this object has changed.

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