QueryElement.Ancestor 屬性

取得或設定此查詢項目之上階的 UI 項目。

命名空間:  Microsoft.VisualStudio.TestTools.UITest.Extension
組件:  Microsoft.VisualStudio.TestTools.UITest.Extension (在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)

語法

'宣告
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)

屬性值

型別:Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyElement
上階項目。

實作

IQueryElement.Ancestor

.NET Framework 安全性

請參閱

參考

QueryElement 類別

Microsoft.VisualStudio.TestTools.UITest.Extension 命名空間

IUITechnologyElement