Share via


QueryElement.Ancestor Property

Gets or sets the UI element that is 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
Public Property Ancestor As IUITechnologyElement
public IUITechnologyElement Ancestor { get; set; }
public:
virtual property IUITechnologyElement^ Ancestor {
    IUITechnologyElement^ get () sealed;
    void set (IUITechnologyElement^ value) sealed;
}
abstract Ancestor : IUITechnologyElement with get, set 
override Ancestor : IUITechnologyElement with get, set
final function get Ancestor () : IUITechnologyElement 
final function set Ancestor (value : IUITechnologyElement)

Property Value

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

Implements

IQueryElement.Ancestor

.NET Framework Security

See Also

Reference

QueryElement Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

IUITechnologyElement