Share via


IQueryElement.Ancestor Property

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets the ancestor of this query element.

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

Syntax

'Declaration
Property Ancestor As IUITechnologyElement
IUITechnologyElement Ancestor { get; set; }
property IUITechnologyElement^ Ancestor {
    IUITechnologyElement^ get ();
    void set (IUITechnologyElement^ value);
}
abstract Ancestor : IUITechnologyElement with get, set
function get Ancestor () : IUITechnologyElement 
function set Ancestor (value : IUITechnologyElement)

Property Value

Type: Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
The ancestor element.

.NET Framework Security

See Also

Reference

IQueryElement Interface

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement