Share via


UITechnologyElementProxy.QueryId Property

Gets a QueryId that can be used to uniquely identify/find this element.

In some cases, such as TreeItem, the QueryIds might contain the complete element hierarchy but most of the time it will contain only important ancestors of the element.

The technology manager must decide which ancestor to capture in the hierarchy by appropriately setting the QueryId.Ancestor property of each element.

The APIs in condition classes like AndCondition.ToString() and AndCondition.Parse() may be used to convert from this class to string or vice-versa.

EXT-PROTO1-NOTES: This QID also recursively converts all the ancestor core technology elements into the extension element and stitches the ancestor hierarchy appropriately.

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

Syntax

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

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IQueryElement

Implements

IUITechnologyElement.QueryId

.NET Framework Security

See Also

Reference

UITechnologyElementProxy Class

Microsoft.VisualStudio.TestTools.UITesting Namespace