다음을 통해 공유


QueryElement Class

Provides a base class for a query in the user interface (UI) test environment.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.TestTools.UITest.Extension.QueryElement

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

Syntax

'Declaration
Public Class QueryElement _
    Implements IQueryElement
public class QueryElement : IQueryElement
public ref class QueryElement : IQueryElement
type QueryElement =  
    class 
        interface IQueryElement 
    end
public class QueryElement implements IQueryElement

The QueryElement type exposes the following members.

Constructors

  Name Description
Public method QueryElement Initializes a new instance of the QueryElement class.

Top

Properties

  Name Description
Public property Ancestor Gets or sets the UI element that is the ancestor of this query element.
Public property Condition Gets or sets the query condition for this query element.
Public property SearchConfigurations Gets or sets a list of attributes and values that are used to search.

Top

Methods

  Name Description
Public method Equals Returns a value that indicates whether the provided object is equal to this query element. (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 that represents the current object. (Inherited from Object.)

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

IQueryElement