Share via


UITechnologyElement.QueryId Property

Gets an identifier object that can be used to uniquely identify and find this element.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property QueryId As IQueryElement
public abstract IQueryElement QueryId { get; }
public:
virtual property IQueryElement^ QueryId {
    IQueryElement^ get () abstract;
}
abstract QueryId : IQueryElement
abstract function get QueryId () : IQueryElement

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IQueryElement
The query identifier.

Implements

IUITechnologyElement.QueryId

Remarks

In some cases the QueryId contains the complete element hierarchy, but most of the time it contains only important ancestors of the element. The technology manager musto choose which ancestor to capture in the hierarchy by appropriately setting the IQueryElement.Ancestor property of each element.

The APIs in condition classes, such as AndCondition.ToString and AndCondition.Parse, may be used to convert from this element class to string or to create an instance of this element from string.

.NET Framework Security

See Also

Reference

UITechnologyElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IQueryElement