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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.