This documentation is archived and is not being maintained.

QueryCondition Class

Provides an abstract base class for query conditions.

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

public abstract class QueryCondition : IQueryCondition

The QueryCondition type exposes the following members.

Protected methodQueryCondition()Initializes a new instance of the QueryCondition class.
Protected methodQueryCondition(IQueryCondition[])Initializes a new instance of the QueryCondition class by using the provided array of nested query conditions.

Public propertyConditionsGets or sets an array of nested query conditions.
Public propertyConditionsWrapperGets or sets the nested conditions for serialization.
Public propertyNameGets or sets the name of this query condition.

Public methodBindParametersBinds parameters to properties in this query condition by using the given value map.
Public methodEqualsReturns a value that indicates whether the provided object is equal to this query condition. (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 methodGetPropertyValueRetrieves the value of the named property, if it exists.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodMatchReturns a value that indicates whether the provided element matches the current query condition.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodParameterizePropertyParameterizes the given property by using the given parameter name.
Public methodToStringReturns a string representation of this condition. (Overrides Object.ToString().)

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