Partilhar via


PropertyCondition Class

Represents a query condition for a property.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.QueryCondition
    Microsoft.VisualStudio.TestTools.UITest.Extension.PropertyCondition

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

Syntax

'Declaration
Public Class PropertyCondition _
    Inherits QueryCondition
public class PropertyCondition : QueryCondition
public ref class PropertyCondition : public QueryCondition
type PropertyCondition =  
    class 
        inherit QueryCondition 
    end
public class PropertyCondition extends QueryCondition

The PropertyCondition type exposes the following members.

Constructors

  Name Description
Public method PropertyCondition() Initializes a new instance of the PropertyCondition class.
Public method PropertyCondition(String, Object) Initializes a new instance of the PropertyCondition class by using the provided property name and value.
Public method PropertyCondition(String, Object, PropertyConditionOperator) Initializes a new instance of the PropertyCondition class.

Top

Properties

  Name Description
Public property Conditions Gets or sets an array of nested query conditions. (Inherited from QueryCondition.)
Public property ConditionsWrapper Gets or sets the nested conditions for serialization. (Inherited from QueryCondition.)
Public property Name Gets or sets the name of this query condition. (Inherited from QueryCondition.)
Public property ParameterName Gets or sets the name of the parameter.
Public property PropertyName Gets or sets the name of the property.
Public property PropertyOperator Gets or sets the operator for the property name and value.
Public property PropertyOperatorWrapper Gets or sets the string representation of the operator for this property condition.
Public property Value Gets or sets the value of the property condition.
Public property ValueWrapper Gets or sets the string version of the value of the property condition.

Top

Methods

  Name Description
Public method BindParameters Binds parameters to properties in this property condition by using the given value map. (Overrides QueryCondition.BindParameters(ValueMap).)
Public method Equals Returns a value that indicates whether the provided object is equal to the current object. (Overrides QueryCondition.Equals(Object).)
Public methodStatic member Escape Returns the provided string as an escaped string.
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 Returns the hash code for this property condition. (Overrides QueryCondition.GetHashCode().)
Public method GetPropertyValue Returns the value for the given property name. (Overrides QueryCondition.GetPropertyValue(String).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Match Determines whether the provided element matches the current property condition. (Overrides QueryCondition.Match(IUITechnologyElement).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ParameterizeProperty Parameterizes a property of this property condition. (Overrides QueryCondition.ParameterizeProperty(String, String).)
Public methodStatic member Parse Creates a PropertyCondition by parsing the provided string.
Public method ToString Returns a string representation for the current property condition. (Overrides QueryCondition.ToString().)
Public methodStatic member Unescape Unescapes any escaped characters in the provided string.

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.UITest.Extension Namespace

QueryCondition