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
.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.